lib/rapa/resources/item_resource.rb in rapa-0.5.2 vs lib/rapa/resources/item_resource.rb in rapa-0.5.3
- old
+ new
@@ -215,9 +215,30 @@
if quantity_source = source.dig("ItemAttributes", "PackageDimensions", "Width")
::Rapa::Quantity.new(quantity_source)
end
end
+ # @return [Rapa::Price, nil]
+ def price_lowest_collectible
+ if price_source = source.dig("OfferSummary", "LowestCollectiblePrice")
+ ::Rapa::Price.new(price_source)
+ end
+ end
+
+ # @return [Rapa::Price, nil]
+ def price_lowest_new
+ if price_source = source.dig("OfferSummary", "LowestNewPrice")
+ ::Rapa::Price.new(price_source)
+ end
+ end
+
+ # @return [Rapa::Price, nil]
+ def price_lowest_used
+ if price_source = source.dig("OfferSummary", "LowestUsedPrice")
+ ::Rapa::Price.new(price_source)
+ end
+ end
+
# @return [String, nil]
def product_group
source.dig("ItemAttributes", "ProductGroup")
end