Sha256: 34f904ab3f6485d1cb9ff92ab1c3b90ad9dda56fa6d25c9f12e186bf09cfb71a

Contents?: true

Size: 456 Bytes

Versions: 5

Compression:

Stored size: 456 Bytes

Contents

# frozen_string_literal: true

require 'rakuten_web_service/books/resource'

module RakutenWebService
  module Books
    class Total < Books::Resource
      endpoint 'https://app.rakuten.co.jp/services/api/BooksTotal/Search/20170404'

      set_parser do |response|
        response['Items'].map do |item|
          resource_class = find_resource_by_genre_id(item['booksGenreId'])
          resource_class.new(item)
        end
      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/books/total.rb
rakuten_web_service-1.11.0 lib/rakuten_web_service/books/total.rb
rakuten_web_service-1.10.0 lib/rakuten_web_service/books/total.rb
rakuten_web_service-1.9.2 lib/rakuten_web_service/books/total.rb
rakuten_web_service-1.9.1 lib/rakuten_web_service/books/total.rb