Sha256: 8855ab18995c86fc8e2507cd6e4aafe5851f455d7522615543aa5407ac19f07e

Contents?: true

Size: 425 Bytes

Versions: 1

Compression:

Stored size: 425 Bytes

Contents

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

1 entries across 1 versions & 1 rubygems

Version Path
rakuten_web_service-1.9.0 lib/rakuten_web_service/books/total.rb