Sha256: 2dea5389a4083222c7e78299bf63520e9a1500c1e1947a03e6918bb5d9218ddc

Contents?: true

Size: 529 Bytes

Versions: 5

Compression:

Stored size: 529 Bytes

Contents

# frozen_string_literal: true

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 => id)
        RWS::Kobo::Ebook.search(options)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rakuten_web_service-1.12.0 lib/rakuten_web_service/kobo/genre.rb
rakuten_web_service-1.11.0 lib/rakuten_web_service/kobo/genre.rb
rakuten_web_service-1.10.0 lib/rakuten_web_service/kobo/genre.rb
rakuten_web_service-1.9.2 lib/rakuten_web_service/kobo/genre.rb
rakuten_web_service-1.9.1 lib/rakuten_web_service/kobo/genre.rb