Class: Betsy::Shop
Class Method Summary collapse
- .find_shops(shop_name, options = {}) ⇒ Object
- .get_shop(shop_id) ⇒ Object
- .get_shop_by_owner_user_id(user_id) ⇒ Object
- .update_shop(shop_id, options = {}) ⇒ Object
Methods included from Model
Class Method Details
.find_shops(shop_name, options = {}) ⇒ Object
64 65 66 67 |
# File 'lib/betsy/shop.rb', line 64 def self.find_shops(shop_name, = {}) [:shop_name] = shop_name make_request(:get, "/v3/application/shops", ) end |
.get_shop(shop_id) ⇒ Object
52 53 54 |
# File 'lib/betsy/shop.rb', line 52 def self.get_shop(shop_id) make_request(:get, "/v3/application/shops/#{shop_id}") end |
.get_shop_by_owner_user_id(user_id) ⇒ Object
60 61 62 |
# File 'lib/betsy/shop.rb', line 60 def self.get_shop_by_owner_user_id(user_id) make_request(:get, "/v3/application/users/#{user_id}/shops") end |
.update_shop(shop_id, options = {}) ⇒ Object
56 57 58 |
# File 'lib/betsy/shop.rb', line 56 def self.update_shop(shop_id, = {}) make_request(:put, "/v3/application/shops/#{shop_id}", ) end |