Sha256: 4689afd5e09b09ee8d37206fe4108cf2c6d9d729092e0a913c0e7d3e46cbc5ed
Contents?: true
Size: 809 Bytes
Versions: 5
Compression:
Stored size: 809 Bytes
Contents
# frozen_string_literal: true require 'rakuten_web_service/resource' module RakutenWebService module Kobo class Ebook < RakutenWebService::Resource endpoint 'https://app.rakuten.co.jp/services/api/Kobo/EbookSearch/20170426' attribute :title, :titleKana, :subTitle, :seriesName, :author, :authorKana, :publisherName, :itemNumber, :itemCaption, :salesDate, :itemPrice, :itemUrl, :affiliateUrl, :smallImageUrl, :mediumImageUrl, :largeImageUrl, :reviewCount, :reviewAverage, :koboGenreId set_parser do |response| response['Items'].map { |i| new(i) } end def self.genre_class RakutenWebService::Kobo::Genre end def genre Kobo::Genre.new(kobo_genre_id) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems