Module: RoomoramaApi::Api::Users

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

Instance Method Summary collapse

Instance Method Details

#users_get_data(user_id, options = {}) ⇒ Object



12
13
14
# File 'lib/roomorama_api/api/users.rb', line 12

def users_get_data(user_id, options={})
  api_call "users/" + user_id.to_s, options
end

#users_me(options = {}) ⇒ Object



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

def users_me(options={})
  api_call "me", options
end

#users_register(options = {}) ⇒ Object



16
17
18
# File 'lib/roomorama_api/api/users.rb', line 16

def users_register(options={})
  api_call "users", options, :post
end

#users_reviews(user_id, options = {}) ⇒ Object



20
21
22
# File 'lib/roomorama_api/api/users.rb', line 20

def users_reviews(user_id, options={})
  api_call "users/" + user_id.to_s + "/reviews", options
end

#users_update_profile(options = {}) ⇒ Object



8
9
10
# File 'lib/roomorama_api/api/users.rb', line 8

def users_update_profile(options={})
  api_call "me", options, :put
end