0.0
No commit activity in last 3 years
No release in over 3 years
This gem generates dummy information of apartment, including address, name, room number, geo and more.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.5
>= 0
~> 3.0
 Project Readme

DummyApartment

Build Status Gem Version

This gem generates dummy information of apartment including

  • address
  • building name
  • latitude/longitude
  • floor/top
  • room number
  • room type
  • keeping pets
  • playable the musical instruments or not
  • floor type
  • direction the window facing
  • air conditioner is equipped or not
  • is self-locking door?
  • whether the manager patrols
  • names of closest stations
  • minutes to reach the stations
    • on foot
    • by bus
  • whether bath and toilet are in different rooms
  • date of
    • construction
    • renovation
  • monthly rent
  • monthly management fee
  • monthly parking price
  • deposit money
  • finder's reward
  • leasing term is fixed or not
    • the term if it's fixed
    • renewal fee if it's fixed

Installation

Add this line to Gemfile:

gem 'dummy-apartment'

And then:

$ bundle

Or just:

$ gem install dummy-apartment

Usage

require 'dummy-apartment'

apartment = DummyApartment.generate

# Get attributes
apartment.address       #=> "群馬県長谷市60"
apartment.building_name #=> "石井コーポ"
apartment.room_floor    #=> 2

# Overwrite
apartment.building_name = "ハイツ谷川"

# Convert to Hash
apartment.to_hash
#=> {address: "群馬県長谷市60", building_name: "ハイツ谷川", ... }

Instance Methods

  • address
  • building_name
  • geo
  • top_floor
  • room_floor
  • room_number
  • room_type
  • occupied_area
  • keeping_pets
  • playing_the_instruments
  • place_for_washing_machine
  • floor_type
  • flooring?
  • tatami?
  • exposure
  • air_conditioner_equipped?
  • self_locking?
  • manager_patrol?
  • nearest_stations
  • minutes_to_stations
  • bath_toilet_separated?
  • date_of_construction
  • renovated?
  • date_of_renovation
  • monthly_rent
  • management_fee
  • parking_price
  • deposit
  • finders_reward
  • fixed_term_lease?
  • lease_term
  • renewal_fee
  • to_hash

Contributing

  1. Fork it ( https://github.com/Joe-noh/dummy-apartment/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request, will be welcomed.