Sha256: 0192efa75b7fdc41ba62e9b6025b4ef5208f902886f6d4910b372cd57829c7c9

Contents?: true

Size: 489 Bytes

Versions: 8

Compression:

Stored size: 489 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

      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

8 entries across 8 versions & 1 rubygems

Version Path
rakuten_web_service-1.1.1 lib/rakuten_web_service/kobo/genre.rb
rakuten_web_service-1.1.0 lib/rakuten_web_service/kobo/genre.rb
rakuten_web_service-1.0.0 lib/rakuten_web_service/kobo/genre.rb
rakuten_web_service-1.0.0.rc1 lib/rakuten_web_service/kobo/genre.rb
rakuten_web_service-0.6.3 lib/rakuten_web_service/kobo/genre.rb
rakuten_web_service-0.6.2 lib/rakuten_web_service/kobo/genre.rb
rakuten_web_service-0.6.1 lib/rakuten_web_service/kobo/genre.rb
rakuten_web_service-0.6.0 lib/rakuten_web_service/kobo/genre.rb