Class: Rakumarket::Item

Inherits:
Base show all
Defined in:
lib/rakumarket/models.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from NibblerJSON

inspect_attributes

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

Returns:

  • (Boolean)


95
# File 'lib/rakumarket/models.rb', line 95

def available?; available end

#credit_cards_accepted?Boolean

Returns:

  • (Boolean)


97
# File 'lib/rakumarket/models.rb', line 97

def credit_cards_accepted?; credit_cards_accepted end

#has_image?Boolean

Returns:

  • (Boolean)


94
# File 'lib/rakumarket/models.rb', line 94

def has_image?; has_image end

#shop_of_the_year?Boolean

Returns:

  • (Boolean)


98
# File 'lib/rakumarket/models.rb', line 98

def shop_of_the_year?; shop_of_the_year end

#tax_included?Boolean

Returns:

  • (Boolean)


96
# File 'lib/rakumarket/models.rb', line 96

def tax_included?; tax_included end