Class: Betsy::ShopSection
- Inherits:
-
Object
- Object
- Betsy::ShopSection
- Includes:
- Model
- Defined in:
- lib/betsy/shop_section.rb
Class Method Summary collapse
- .create_shop_section(shop_id, options = {}) ⇒ Object
- .get_shop_section(shop_id, shop_section_id) ⇒ Object
- .get_shop_sections(shop_id) ⇒ Object
Methods included from Model
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, = {}) make_request(:post, "/v3/application/shops/#{shop_id}/sections", ) 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 |