Class: RakutenWebService::Books::Genre
- Inherits:
-
RakutenWebService::BaseGenre
- Object
- Resource
- RakutenWebService::BaseGenre
- RakutenWebService::Books::Genre
- Defined in:
- lib/rakuten_web_service/books/genre.rb
Instance Method Summary collapse
Methods inherited from RakutenWebService::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
#search(params = {}) ⇒ Object
14 15 16 17 18 |
# File 'lib/rakuten_web_service/books/genre.rb', line 14 def search(params={}) params = params.merge(:booksGenreId => self.id) resource = Books::Resource.find_resource_by_genre_id(self.id) resource.search(params) end |