class AmazonSellerCentral::Listing
It turns out you can’t get low_price
without executing a sub-request, so I’m leaving it alone for now.
Attributes
asin[RW]
condition[RW]
created_at[RW]
low_price_cents[RW]
price_cents[RW]
product[RW]
product=[RW]
product_name[RW]
qty[RW]
qty=[RW]
quantity[RW]
sku[RW]
status[RW]
Public Instance Methods
low_price()
click to toggle source
# File lib/amazon_seller_central/listing.rb, line 30 def low_price @low_price_cents.kind_of?(Numeric) ? @low_price_cents / 100.0 : @low_price_cents end
low_price=(low_price)
click to toggle source
# File lib/amazon_seller_central/listing.rb, line 33 def low_price=(low_price) @low_price_cents = low_price.kind_of?(Numeric) ? (low_price * 100).round : low_price end
price()
click to toggle source
# File lib/amazon_seller_central/listing.rb, line 20 def price @price_cents.kind_of?(Numeric) ? @price_cents / 100.0 : @price_cents end
Also aliased as: your_price
price=(price)
click to toggle source
# File lib/amazon_seller_central/listing.rb, line 23 def price=(price) @price_cents = price.kind_of?(Numeric) ? (price * 100).round : price end
Also aliased as: your_price=
save()
click to toggle source
# File lib/amazon_seller_central/listing.rb, line 37 def save puts "Sorry, you want to send this listing as part of an array to the InventoryPage it came from, with InventoryPage#apply_listings" false end