Module: RoomoramaApi::Api::Properties
- Included in:
- Client
- Defined in:
- lib/roomorama_api/api/properties.rb
Instance Method Summary collapse
- #properties_availabilities(room_id, options = {}) ⇒ Object
- #properties_find(options = {}) ⇒ Object
- #properties_find_similar(room_id, options = {}) ⇒ Object
- #properties_get_data(room_id, options = {}) ⇒ Object
- #properties_price_check(room_id, options = {}) ⇒ Object
- #properties_reviews(room_id, options = {}) ⇒ Object
Instance Method Details
#properties_availabilities(room_id, options = {}) ⇒ Object
16 17 18 |
# File 'lib/roomorama_api/api/properties.rb', line 16 def properties_availabilities(room_id, ={}) api_call "rooms/" + room_id.to_s + "/availabilities", end |
#properties_find(options = {}) ⇒ Object
4 5 6 |
# File 'lib/roomorama_api/api/properties.rb', line 4 def properties_find(={}) api_call "rooms", end |
#properties_find_similar(room_id, options = {}) ⇒ Object
12 13 14 |
# File 'lib/roomorama_api/api/properties.rb', line 12 def properties_find_similar(room_id, ={}) api_call "rooms/" + room_id.to_s + "/similar", end |
#properties_get_data(room_id, options = {}) ⇒ Object
8 9 10 |
# File 'lib/roomorama_api/api/properties.rb', line 8 def properties_get_data(room_id, ={}) api_call "rooms/" + room_id.to_s, end |
#properties_price_check(room_id, options = {}) ⇒ Object
20 21 22 |
# File 'lib/roomorama_api/api/properties.rb', line 20 def properties_price_check(room_id, ={}) api_call "inquiries/new.json", .merge(room_id: room_id) end |
#properties_reviews(room_id, options = {}) ⇒ Object
24 25 26 |
# File 'lib/roomorama_api/api/properties.rb', line 24 def properties_reviews(room_id, ={}) api_call "rooms/" + room_id.to_s + "/reviews", end |