Sha256: 6536df5c4498b67fef435ca0a118fbb4a62fa3b14c00ae77e4521ccdb8be4ac5
Contents?: true
Size: 657 Bytes
Versions: 7
Compression:
Stored size: 657 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 root_id 0 def ranking(options={}) RakutenWebService::Ichiba::RankingItem.search(:genre_id => self.id) end def products(options={}) options = options.merge(:genre_id => self.id) RakutenWebService::Ichiba::Product.search(options) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems