Class: ItemBuilder::Modes::Price::ShopifyService

Inherits:
Base
  • Object
show all
Defined in:
lib/item_builder/modes/price/shopify_service.rb

Instance Attribute Summary

Attributes inherited from Base

#listing

Instance Method Summary collapse

Methods inherited from Base

#initialize, #sale_price_policy

Constructor Details

This class inherits a constructor from ItemBuilder::Modes::Price::Base

Instance Method Details

#performObject



9
10
11
12
13
14
15
16
# File 'lib/item_builder/modes/price/shopify_service.rb', line 9

def perform
  {
    price: listing.price,
    sale_price: sale_price,
    sale_start_at: listing.sale_start_at,
    sale_end_at: listing.sale_end_at
  }
end