Class: Betsy::Shop

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
lib/betsy/shop.rb

Class Method Summary collapse

Methods included from Model

included, #initialize

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, options = {})
  options[:shop_name] = shop_name
  make_request(:get, "/v3/application/shops", options)
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, options = {})
  make_request(:put, "/v3/application/shops/#{shop_id}", options)
end