Class: YahooShoppingSearch::Resources::Item
- Inherits:
-
Object
- Object
- YahooShoppingSearch::Resources::Item
- Defined in:
- lib/yahoo_shopping_search/resources/item.rb
Instance Method Summary collapse
- #[](key) ⇒ Hash?
-
#initialize(hash) ⇒ Item
constructor
A new instance of Item.
Constructor Details
#initialize(hash) ⇒ Item
Returns a new instance of Item.
7 8 9 |
# File 'lib/yahoo_shopping_search/resources/item.rb', line 7 def initialize(hash) @item = hash end |
Instance Method Details
#[](key) ⇒ Hash?
13 14 15 |
# File 'lib/yahoo_shopping_search/resources/item.rb', line 13 def [](key) @item[key] end |