Class: Betsy::ShopListingImage

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

Class Method Summary collapse

Methods included from Model

included, #initialize

Class Method Details

.delete_listing_image(shop_id, listing_id, listing_image_id, options = {}) ⇒ Object



26
27
28
# File 'lib/betsy/shop_listing_image.rb', line 26

def self.delete_listing_image(shop_id, listing_id, listing_image_id, options = {})
  make_request(:delete, "/v3/application/shops/#{shop_id}/listings/#{listing_id}/images/#{listing_image_id}", options)
end

.get_listing_image(shop_id, listing_id, listing_image_id) ⇒ Object



30
31
32
# File 'lib/betsy/shop_listing_image.rb', line 30

def self.get_listing_image(shop_id, listing_id, listing_image_id)
  make_request(:get, "/v3/application/shops/#{shop_id}/listings/#{listing_id}/images/#{listing_image_id}")
end

.get_listing_images(shop_id, listing_id) ⇒ Object



34
35
36
# File 'lib/betsy/shop_listing_image.rb', line 34

def self.get_listing_images(shop_id, listing_id)
  make_request(:get, "/v3/application/shops/#{shop_id}/listings/#{listing_id}/images")
end

.upload_listing_image(shop_id, listing_id, options = {}) ⇒ Object



38
39
40
# File 'lib/betsy/shop_listing_image.rb', line 38

def self.upload_listing_image(shop_id, listing_id, options = {})
  make_request(:post, "/v3/application/shops/#{shop_id}/listings/#{listing_id}/images", options)
end