Class: Amazon::Associates::ItemLookupResponse
- Defined in:
- lib/amazon-associates/responses/item_lookup_response.rb
Instance Attribute Summary
Attributes inherited from Response
Instance Method Summary collapse
Methods inherited from Response
Constructor Details
This class inherits a constructor from Amazon::Associates::Response
Instance Method Details
#item ⇒ Object
10 11 12 13 |
# File 'lib/amazon-associates/responses/item_lookup_response.rb', line 10 def item raise IndexError, "more than one item" if items.size > 1 items.first end |