Module: RoomoramaApi::Api::Favorites
- Included in:
- Client
- Defined in:
- lib/roomorama_api/api/favorites.rb
Instance Method Summary collapse
- #favorites_create(options = {}) ⇒ Object
- #favorites_delete(id, options = {}) ⇒ Object
- #favorites_list(options = {}) ⇒ Object
Instance Method Details
#favorites_create(options = {}) ⇒ Object
8 9 10 |
# File 'lib/roomorama_api/api/favorites.rb', line 8 def favorites_create( = {}) api_call "favorites", , :post end |
#favorites_delete(id, options = {}) ⇒ Object
12 13 14 |
# File 'lib/roomorama_api/api/favorites.rb', line 12 def favorites_delete(id, = {}) api_call "favorites/" + id.to_s, , :delete end |
#favorites_list(options = {}) ⇒ Object
4 5 6 |
# File 'lib/roomorama_api/api/favorites.rb', line 4 def favorites_list( = {}) api_call "favorites", end |