Class: YahooShoppingSearch::Resources::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/yahoo_shopping_search/resources/item.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Item

Returns a new instance of Item.

Parameters:

  • hash (Hash)


7
8
9
# File 'lib/yahoo_shopping_search/resources/item.rb', line 7

def initialize(hash)
  @item = hash
end

Instance Method Details

#[](key) ⇒ Hash?

Parameters:

  • key (String)

Returns:

  • (Hash, nil)


13
14
15
# File 'lib/yahoo_shopping_search/resources/item.rb', line 13

def [](key)
  @item[key]
end