Module: RoomoramaApi::Api::Users
- Included in:
- Client
- Defined in:
- lib/roomorama_api/api/users.rb
Instance Method Summary collapse
- #users_get_data(user_id, options = {}) ⇒ Object
- #users_me(options = {}) ⇒ Object
- #users_register(options = {}) ⇒ Object
- #users_reviews(user_id, options = {}) ⇒ Object
- #users_update_profile(options = {}) ⇒ Object
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, ={}) api_call "users/" + user_id.to_s, end |
#users_me(options = {}) ⇒ Object
4 5 6 |
# File 'lib/roomorama_api/api/users.rb', line 4 def users_me(={}) api_call "me", end |
#users_register(options = {}) ⇒ Object
16 17 18 |
# File 'lib/roomorama_api/api/users.rb', line 16 def users_register(={}) api_call "users", , :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, ={}) api_call "users/" + user_id.to_s + "/reviews", end |
#users_update_profile(options = {}) ⇒ Object
8 9 10 |
# File 'lib/roomorama_api/api/users.rb', line 8 def users_update_profile(={}) api_call "me", , :put end |