Sha256: d33c92c4f3ae5c37697ea262b57caa8e24b7e823a7cf84255e45d3058fdb0a7f

Contents?: true

Size: 918 Bytes

Versions: 1

Compression:

Stored size: 918 Bytes

Contents

require 'rakuten_web_service/books/resource'

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

      attribute :title, :titleKana, :subTitle, :subTitleKana,
                :seriesName, :seriesNameKana,
                :contents, :contentsKana,
                :author, :authorKana, :publisherName,
                :size, :isbn,
                :itemCaption, :itemPrice, :listPrice,
                :discountRate, :discountPrice,
                :salesDate,
                :itemUrl, :affiliateUrl,
                :smallImageUrl, :mediumImageUrl, :largeImageUrl,
                :chirayomiUrl,
                :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/book.rb