Sha256: 5360ff641902222f18de904e9e370e3d6755d26433e97ccc180124f7392b8a56
Contents?: true
Size: 1.5 KB
Versions: 2
Compression:
Stored size: 1.5 KB
Contents
# frozen_string_literal: true require 'rakuten_web_service/resource' module RakutenWebService module Ichiba class Item < Resource class << self def ranking(options={}) RakutenWebService::Ichiba::RankingItem.search(options) end def genre_class RakutenWebService::Ichiba::Genre end end endpoint 'https://app.rakuten.co.jp/services/api/IchibaItem/Search/20170706' parser do |response| (response['Items'] || []).map { |item| Item.new(item) } end attribute :itemName, :catchcopy, :itemCode, :itemPrice, :itemCaption, :itemUrl, :affiliateUrl, :imageFlag, :smallImageUrls, :mediumImageUrls, :availability, :taxFlag, :postageFlag, :creditCardFlag, :shopOfTheYearFlag, :shipOverseasFlag, :shipOverseasArea, :asurakuFlag, :asurakuClosingTime, :asurakuArea, :affiliateRate, :startTime, :endTime, :reviewCount, :reviewAverage, :pointRate, :pointRateStartTime, :pointRateEndTime, :shopName, :shopCode, :shopUrl, :shopAffiliateUrl, :genreId, :tagIds def genre Genre.new(genre_id) end def shop Shop.new( 'shopName' => shop_name, 'shopCode' => shop_code, 'shopUrl' => shop_url, 'shopAffiliateUrl' => shop_affiliate_url ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rakuten_web_service-1.13.2 | lib/rakuten_web_service/ichiba/item.rb |
rakuten_web_service-1.13.1 | lib/rakuten_web_service/ichiba/item.rb |