Class: Rakumarket::Item
- Inherits:
-
Base
- Object
- NibblerJSON
- Base
- Rakumarket::Item
- Defined in:
- lib/rakumarket/models.rb
Class Method Summary collapse
Instance Method Summary collapse
- #available? ⇒ Boolean
- #credit_cards_accepted? ⇒ Boolean
- #has_image? ⇒ Boolean
- #shop_of_the_year? ⇒ Boolean
- #tax_included? ⇒ Boolean
Methods inherited from NibblerJSON
Class Method Details
.parse(response) ⇒ Object
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'lib/rakumarket/models.rb', line 100 def self.parse(response) response['shop'] = { 'shopName' => response.delete('shopName'), 'shopCode' => response.delete('shopCode'), 'shopUrl' => response.delete('shopUrl') } response['shipping'] = { 'postageFlag' => response.delete('postageFlag'), 'shipOverseasFlag' => response.delete('shipOverseasFlag'), 'shipOverseasArea' => response.delete('shipOverseasArea'), 'asurakuFlag' => response.delete('asurakuFlag'), 'asurakuArea' => response.delete('asurakuArea') } super(response) end |
Instance Method Details
#available? ⇒ Boolean
95 |
# File 'lib/rakumarket/models.rb', line 95 def available?; available end |
#credit_cards_accepted? ⇒ Boolean
97 |
# File 'lib/rakumarket/models.rb', line 97 def credit_cards_accepted?; credit_cards_accepted end |
#has_image? ⇒ Boolean
94 |
# File 'lib/rakumarket/models.rb', line 94 def has_image?; has_image end |
#shop_of_the_year? ⇒ Boolean
98 |
# File 'lib/rakumarket/models.rb', line 98 def shop_of_the_year?; shop_of_the_year end |
#tax_included? ⇒ Boolean
96 |
# File 'lib/rakumarket/models.rb', line 96 def tax_included?; tax_included end |