Sha256: 604cd0252d61e587e4c50749064e1ffad90f41470b3e78558278c6f5e0e39b7c

Contents?: true

Size: 756 Bytes

Versions: 1

Compression:

Stored size: 756 Bytes

Contents

require 'rakuten_web_service/resource'

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

      attribute :title, :titleKana, :japaneseTitle,
                :author, :authorKana,
                :publishName, :isbn, :itemCaption, :salesDate,
                :itemPrice, :listPrice,
                :discountRate, :discountPrice,
                :itemUrl, :affiliateUrl,
                :smallImageUrl, :mediumImageUrl, :largeImageUrl,
                :availability, :postageFlag, :limitedFlag,
                :reviewCount, :reviewAverage,
                :booksGenreId

      def update_key
        'isbn'
      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/foreign_book.rb