Class: Betsy::ShopSection

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

Class Method Summary collapse

Methods included from Model

included, #initialize

Class Method Details

.create_shop_section(shop_id, options = {}) ⇒ Object



13
14
15
# File 'lib/betsy/shop_section.rb', line 13

def self.create_shop_section(shop_id, options = {})
  make_request(:post, "/v3/application/shops/#{shop_id}/sections", options)
end

.get_shop_section(shop_id, shop_section_id) ⇒ Object



21
22
23
# File 'lib/betsy/shop_section.rb', line 21

def self.get_shop_section(shop_id, shop_section_id)
  make_request(:get, "/v3/application/shops/#{shop_id}/sections/#{shop_section_id}")
end

.get_shop_sections(shop_id) ⇒ Object



17
18
19
# File 'lib/betsy/shop_section.rb', line 17

def self.get_shop_sections(shop_id)
  make_request(:get, "/v3/application/shops/#{shop_id}/sections")
end