Sha256: 67301cedbd9191f94ea265567ddeb4c68d9c9334423b915bfcef445d13357452
Contents?: true
Size: 543 Bytes
Versions: 8
Compression:
Stored size: 543 Bytes
Contents
require 'rakuten_web_service/genre' module RakutenWebService module Books class Genre < RakutenWebService::BaseGenre set_resource_name 'books_genre' endpoint 'https://app.rakuten.co.jp/services/api/BooksGenre/Search/20121128' attribute :booksGenreId, :booksGenreName, :genreLevel root_id '000' def search(params={}) params = params.merge(:booksGenreId => self.id) resource = Books::Resource.find_resource_by_genre_id(self.id) resource.search(params) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems