Class: RakutenWebService::Ichiba::Item

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

Direct Known Subclasses

RankingItem

Instance Attribute Summary

Attributes inherited from Resource

#params

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Resource

#==, #[], all, attribute, #attributes, endpoint, #get_attribute, inherited, #initialize, parser, search, subclasses

Constructor Details

This class inherits a constructor from RakutenWebService::Resource

Class Method Details

.genre_classObject



13
14
15
# File 'lib/rakuten_web_service/ichiba/item.rb', line 13

def genre_class
  RakutenWebService::Ichiba::Genre
end

.ranking(options = {}) ⇒ Object



9
10
11
# File 'lib/rakuten_web_service/ichiba/item.rb', line 9

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

Instance Method Details

#genreObject



39
40
41
# File 'lib/rakuten_web_service/ichiba/item.rb', line 39

def genre
  Genre.new(genre_id)
end

#shopObject



43
44
45
46
47
48
49
50
# File 'lib/rakuten_web_service/ichiba/item.rb', line 43

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