Class: Betsy::ShopListingTranslation
- Inherits:
-
Object
- Object
- Betsy::ShopListingTranslation
- Includes:
- Model
- Defined in:
- lib/betsy/shop_listing_translation.rb
Class Method Summary collapse
- .create_listing_translation(shop_id, listing_id, language, options = {}) ⇒ Object
- .get_listing_translation(shop_id, listing_id, language) ⇒ Object
- .update_listing_translation(shop_id, listing_id, language, options = {}) ⇒ Object
Methods included from Model
Class Method Details
.create_listing_translation(shop_id, listing_id, language, options = {}) ⇒ Object
13 14 15 |
# File 'lib/betsy/shop_listing_translation.rb', line 13 def self.create_listing_translation(shop_id, listing_id, language, = {}) make_request(:post, "/v3/application/shops/#{shop_id}/listings/#{listing_id}/translations/#{language}", ) end |
.get_listing_translation(shop_id, listing_id, language) ⇒ Object
17 18 19 |
# File 'lib/betsy/shop_listing_translation.rb', line 17 def self.get_listing_translation(shop_id, listing_id, language) make_request(:get, "/v3/application/shops/#{shop_id}/listings/#{listing_id}/translations/#{language}") end |
.update_listing_translation(shop_id, listing_id, language, options = {}) ⇒ Object
21 22 23 |
# File 'lib/betsy/shop_listing_translation.rb', line 21 def self.update_listing_translation(shop_id, listing_id, language, = {}) make_request(:put, "/v3/application/shops/#{shop_id}/listings/#{listing_id}/translations/#{language}", ) end |