Class: RoomoramaApi::Client

Inherits:
Object
  • Object
show all
Includes:
Api::Destinations, Api::Errors, Api::Favorites, Api::HostAvailabilities, Api::HostInquiries, Api::HostProperties, Api::Perks, Api::Properties, Api::Users
Defined in:
lib/roomorama_api.rb

Constant Summary collapse

BASE_URL =
'https://api.roomorama.com/'
API_VERSION =
'v1.0'

Constants included from Api::Errors

Api::Errors::HTTP_STATUS_ERRORS

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Api::HostInquiries

#host_inquiries_list, #host_inquiries_show

Methods included from Api::HostAvailabilities

#host_availabilities_list, #host_availabilities_update

Methods included from Api::HostProperties

#host_properties_create, #host_properties_list, #host_properties_show, #host_properties_update

Methods included from Api::Users

#users_get_data, #users_me, #users_register, #users_reviews, #users_update_profile

Methods included from Api::Properties

#properties_availabilities, #properties_find, #properties_find_similar, #properties_get_data, #properties_price_check, #properties_reviews

Methods included from Api::Perks

#perks_get_data, #perks_list

Methods included from Api::Favorites

#favorites_create, #favorites_delete, #favorites_list

Methods included from Api::Destinations

#destinations_all

Constructor Details

#initialize(oauth_token = nil) ⇒ Client

Returns a new instance of Client.



30
31
32
# File 'lib/roomorama_api.rb', line 30

def initialize(oauth_token=nil)
  @oauth_token = oauth_token
end

Class Method Details

.debugObject



34
35
36
# File 'lib/roomorama_api.rb', line 34

def self.debug
  @debug ||= false
end

.debug=(v) ⇒ Object



38
39
40
# File 'lib/roomorama_api.rb', line 38

def self.debug=(v)
  @debug = !!v
end