Class: RakutenWebService::Ichiba::Item

Inherits:
Resource
  • Object
show all
Defined in:
lib/rakuten_web_service/ichiba/item.rb

Direct Known Subclasses

RankingItem

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Resource

#[], all, attribute, client, endpoint, #get_attribute, #initialize, resource_name, search, set_parser, set_resource_name

Constructor Details

This class inherits a constructor from RakutenWebService::Resource

Class Method Details

.ranking(options = {}) ⇒ Object


7
8
9
# File 'lib/rakuten_web_service/ichiba/item.rb', line 7

def ranking(options={})
  RakutenWebService::Ichiba::RankingItem.search(options)
end

Instance Method Details

#genreObject


33
34
35
# File 'lib/rakuten_web_service/ichiba/item.rb', line 33

def genre
  Genre.new(self.genre_id)
end

#shopObject


37
38
39
40
41
42
43
44
# File 'lib/rakuten_web_service/ichiba/item.rb', line 37

def shop
  Shop.new({
    'shopName' => self.shop_name,
    'shopCode' => self.shop_code,
    'shopUrl' => self.shop_url,
    'shopAffiliateUrl' => self.shop_affiliate_url
  })
end