Sha256: 85f18c947d8f8f2abf79c54b672a36c3a838922711be3e6443d3492635f43438

Contents?: true

Size: 441 Bytes

Versions: 19

Compression:

Stored size: 441 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/20130522'

      set_parser do |response|
        response['Items'].map do |item|
          resource_class = find_resource_by_genre_id(item['Item']['booksGenreId'])
          resource_class.new(item['Item'])
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rakuten_web_service-1.5.0 lib/rakuten_web_service/books/total.rb
rakuten_web_service-1.4.2 lib/rakuten_web_service/books/total.rb
rakuten_web_service-1.4.1 lib/rakuten_web_service/books/total.rb
rakuten_web_service-1.4.0 lib/rakuten_web_service/books/total.rb
rakuten_web_service-1.3.0 lib/rakuten_web_service/books/total.rb
rakuten_web_service-1.2.0 lib/rakuten_web_service/books/total.rb
rakuten_web_service-1.1.1 lib/rakuten_web_service/books/total.rb
rakuten_web_service-1.1.0 lib/rakuten_web_service/books/total.rb
rakuten_web_service-1.0.0 lib/rakuten_web_service/books/total.rb
rakuten_web_service-1.0.0.rc1 lib/rakuten_web_service/books/total.rb
rakuten_web_service-0.6.3 lib/rakuten_web_service/books/total.rb
rakuten_web_service-0.6.2 lib/rakuten_web_service/books/total.rb
rakuten_web_service-0.6.1 lib/rakuten_web_service/books/total.rb
rakuten_web_service-0.6.0 lib/rakuten_web_service/books/total.rb
rakuten_web_service-0.5.0 lib/rakuten_web_service/books/total.rb
rakuten_web_service-0.4.2 lib/rakuten_web_service/books/total.rb
rakuten_web_service-0.4.1 lib/rakuten_web_service/books/total.rb
rakuten_web_service-0.3.1 lib/rakuten_web_service/books/total.rb
rakuten_web_service-0.3.0 lib/rakuten_web_service/books/total.rb