Sha256: 03ca8d9e87fefb6bfa88cf47d5aef6e0b0a586289b75d0ab4d05b7635b33e1a3

Contents?: true

Size: 501 Bytes

Versions: 11

Compression:

Stored size: 501 Bytes

Contents

require 'rakuten_web_service/genre'

module RakutenWebService
  module Kobo
    class Genre < RakutenWebService::BaseGenre
      set_resource_name :kobo_genre

      root_id '101'

      endpoint 'https://app.rakuten.co.jp/services/api/Kobo/GenreSearch/20131010'

      attribute :koboGenreId, :koboGenreName, :genreLevel, :itemCount

      def search(options={})
        options = options.merge(self.class.genre_id_key => self.id)
        RWS::Kobo::Ebook.search(options)
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rakuten_web_service-1.9.0 lib/rakuten_web_service/kobo/genre.rb
rakuten_web_service-1.8.0 lib/rakuten_web_service/kobo/genre.rb
rakuten_web_service-1.7.0 lib/rakuten_web_service/kobo/genre.rb
rakuten_web_service-1.6.1 lib/rakuten_web_service/kobo/genre.rb
rakuten_web_service-1.6.0 lib/rakuten_web_service/kobo/genre.rb
rakuten_web_service-1.5.0 lib/rakuten_web_service/kobo/genre.rb
rakuten_web_service-1.4.2 lib/rakuten_web_service/kobo/genre.rb
rakuten_web_service-1.4.1 lib/rakuten_web_service/kobo/genre.rb
rakuten_web_service-1.4.0 lib/rakuten_web_service/kobo/genre.rb
rakuten_web_service-1.3.0 lib/rakuten_web_service/kobo/genre.rb
rakuten_web_service-1.2.0 lib/rakuten_web_service/kobo/genre.rb