Module: RoomoramaApi::Api::Properties

Included in:
Client
Defined in:
lib/roomorama_api/api/properties.rb

Instance Method Summary collapse

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, options={})
  api_call "rooms/" + room_id.to_s + "/availabilities", options
end

#properties_find(options = {}) ⇒ Object



4
5
6
# File 'lib/roomorama_api/api/properties.rb', line 4

def properties_find(options={})
  api_call "rooms", options
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, options={})
  api_call "rooms/" + room_id.to_s + "/similar", options
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, options={})
  api_call "rooms/" + room_id.to_s, options
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, options={})
  api_call "inquiries/new.json", options.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, options={})
  api_call "rooms/" + room_id.to_s + "/reviews", options
end