DummyApartment
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
addressbuilding_namegeotop_floorroom_floorroom_numberroom_typeoccupied_areakeeping_petsplaying_the_instrumentsplace_for_washing_machinefloor_typeflooring?tatami?exposureair_conditioner_equipped?self_locking?manager_patrol?nearest_stationsminutes_to_stationsbath_toilet_separated?date_of_constructionrenovated?date_of_renovationmonthly_rentmanagement_feeparking_pricedepositfinders_rewardfixed_term_lease?lease_termrenewal_feeto_hash
Contributing
- Fork it ( https://github.com/Joe-noh/dummy-apartment/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request, will be welcomed.