Sha256: cb98b55688a56810ddc066d8be29115874ce14aa8b2ff4aa696ec80e8adf7558
Contents?: true
Size: 1.48 KB
Versions: 1
Compression:
Stored size: 1.48 KB
Contents
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' set_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 def genre Genre.new(self.genre_id) end def shop Shop.new({ 'shopName' => self.shop_name, 'shopCode' => self.shop_code, 'shopUrl' => self.shop_url, 'shopAffiliateUrl' => self.shop_affiliate_url }) 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/ichiba/item.rb |