Sha256: 63f3e5db8e6bf33707be3703e05e6a155c52892fe5e024f5039430d497914105
Contents?: true
Size: 704 Bytes
Versions: 3
Compression:
Stored size: 704 Bytes
Contents
require 'rakuten_web_service/genre' require 'rakuten_web_service/ichiba/ranking' require 'rakuten_web_service/ichiba/product' module RakutenWebService module Ichiba class Genre < RakutenWebService::BaseGenre endpoint 'https://app.rakuten.co.jp/services/api/IchibaGenre/Search/20120723' attribute :genreId, :genreName, :genreLevel, :itemCount root_id 0 def ranking(options={}) options = options.merge(genre_id: self.id) RakutenWebService::Ichiba::RankingItem.search(options) end def products(options={}) options = options.merge(genre_id: self.id) RakutenWebService::Ichiba::Product.search(options) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems