Class: RakutenWebService::Ichiba::Genre

Inherits:
BaseGenre show all
Defined in:
lib/rakuten_web_service/ichiba/genre.rb

Instance Method Summary collapse

Methods inherited from BaseGenre

[], []=, #children, genre_id_key, inherited, #initialize, new, repository, root, root_id

Methods inherited from Resource

#[], all, attribute, client, endpoint, #get_attribute, #initialize, resource_name, search, set_parser, set_resource_name

Constructor Details

This class inherits a constructor from RakutenWebService::BaseGenre

Instance Method Details

#products(options = {}) ⇒ Object


18
19
20
21
# File 'lib/rakuten_web_service/ichiba/genre.rb', line 18

def products(options={})
  options = options.merge(:genre_id => self.id)
  RakutenWebService::Ichiba::Product.search(options)
end

#ranking(options = {}) ⇒ Object


14
15
16
# File 'lib/rakuten_web_service/ichiba/genre.rb', line 14

def ranking(options={})
  RakutenWebService::Ichiba::RankingItem.search(:genre_id => self.id)
end