Class Amazon::Product
In: lib/amazon.rb
Parent: Object

Amazon::Product objects are returned by many of the basic forms of search in Amazon::Search::Request.

Methods

[]   to_h   to_s  

Classes and Modules

Class Amazon::Product::Review
Class Amazon::Product::ThirdPartyInfo

External Aliases

instance_variables -> properties
  This alias makes the ability to determine a product’s properties a little more intuitive.

Public Instance methods

Fake the appearance of a product as a hash. key should be any attribute of the product, as returned by Amazon::Product#properties.

E.g.

 puts product['our_price'] => "$8.99"
 puts product[:our_price]  => "$8.99"

Converts an Amazon::Product to a Hash.

Displays a product in a human-readable format. Call without a parameter, as the parameter is only for internal use.

[Validate]