Class: Pokemon::CardmarketPrices
- Inherits:
-
Object
- Object
- Pokemon::CardmarketPrices
- Defined in:
- lib/pokemon_tcg_sdk/cardmarket.rb
Instance Attribute Summary collapse
-
#average_sell_price ⇒ Object
Returns the value of attribute average_sell_price.
-
#avg1 ⇒ Object
Returns the value of attribute avg1.
-
#avg30 ⇒ Object
Returns the value of attribute avg30.
-
#avg7 ⇒ Object
Returns the value of attribute avg7.
-
#german_pro_low ⇒ Object
Returns the value of attribute german_pro_low.
-
#low_price ⇒ Object
Returns the value of attribute low_price.
-
#low_price_ex_plus ⇒ Object
Returns the value of attribute low_price_ex_plus.
-
#reverse_holo_avg1 ⇒ Object
Returns the value of attribute reverse_holo_avg1.
-
#reverse_holo_avg30 ⇒ Object
Returns the value of attribute reverse_holo_avg30.
-
#reverse_holo_avg7 ⇒ Object
Returns the value of attribute reverse_holo_avg7.
-
#reverse_holo_low ⇒ Object
Returns the value of attribute reverse_holo_low.
-
#reverse_holo_sell ⇒ Object
Returns the value of attribute reverse_holo_sell.
-
#reverse_holo_trend ⇒ Object
Returns the value of attribute reverse_holo_trend.
-
#suggested_price ⇒ Object
Returns the value of attribute suggested_price.
-
#trend_price ⇒ Object
Returns the value of attribute trend_price.
Class Method Summary collapse
Instance Attribute Details
#average_sell_price ⇒ Object
Returns the value of attribute average_sell_price.
16 17 18 |
# File 'lib/pokemon_tcg_sdk/cardmarket.rb', line 16 def average_sell_price @average_sell_price end |
#avg1 ⇒ Object
Returns the value of attribute avg1.
16 17 18 |
# File 'lib/pokemon_tcg_sdk/cardmarket.rb', line 16 def avg1 @avg1 end |
#avg30 ⇒ Object
Returns the value of attribute avg30.
16 17 18 |
# File 'lib/pokemon_tcg_sdk/cardmarket.rb', line 16 def avg30 @avg30 end |
#avg7 ⇒ Object
Returns the value of attribute avg7.
16 17 18 |
# File 'lib/pokemon_tcg_sdk/cardmarket.rb', line 16 def avg7 @avg7 end |
#german_pro_low ⇒ Object
Returns the value of attribute german_pro_low.
16 17 18 |
# File 'lib/pokemon_tcg_sdk/cardmarket.rb', line 16 def german_pro_low @german_pro_low end |
#low_price ⇒ Object
Returns the value of attribute low_price.
16 17 18 |
# File 'lib/pokemon_tcg_sdk/cardmarket.rb', line 16 def low_price @low_price end |
#low_price_ex_plus ⇒ Object
Returns the value of attribute low_price_ex_plus.
16 17 18 |
# File 'lib/pokemon_tcg_sdk/cardmarket.rb', line 16 def low_price_ex_plus @low_price_ex_plus end |
#reverse_holo_avg1 ⇒ Object
Returns the value of attribute reverse_holo_avg1.
16 17 18 |
# File 'lib/pokemon_tcg_sdk/cardmarket.rb', line 16 def reverse_holo_avg1 @reverse_holo_avg1 end |
#reverse_holo_avg30 ⇒ Object
Returns the value of attribute reverse_holo_avg30.
16 17 18 |
# File 'lib/pokemon_tcg_sdk/cardmarket.rb', line 16 def reverse_holo_avg30 @reverse_holo_avg30 end |
#reverse_holo_avg7 ⇒ Object
Returns the value of attribute reverse_holo_avg7.
16 17 18 |
# File 'lib/pokemon_tcg_sdk/cardmarket.rb', line 16 def reverse_holo_avg7 @reverse_holo_avg7 end |
#reverse_holo_low ⇒ Object
Returns the value of attribute reverse_holo_low.
16 17 18 |
# File 'lib/pokemon_tcg_sdk/cardmarket.rb', line 16 def reverse_holo_low @reverse_holo_low end |
#reverse_holo_sell ⇒ Object
Returns the value of attribute reverse_holo_sell.
16 17 18 |
# File 'lib/pokemon_tcg_sdk/cardmarket.rb', line 16 def reverse_holo_sell @reverse_holo_sell end |
#reverse_holo_trend ⇒ Object
Returns the value of attribute reverse_holo_trend.
16 17 18 |
# File 'lib/pokemon_tcg_sdk/cardmarket.rb', line 16 def reverse_holo_trend @reverse_holo_trend end |
#suggested_price ⇒ Object
Returns the value of attribute suggested_price.
16 17 18 |
# File 'lib/pokemon_tcg_sdk/cardmarket.rb', line 16 def suggested_price @suggested_price end |
#trend_price ⇒ Object
Returns the value of attribute trend_price.
16 17 18 |
# File 'lib/pokemon_tcg_sdk/cardmarket.rb', line 16 def trend_price @trend_price end |
Class Method Details
.from_json(json) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/pokemon_tcg_sdk/cardmarket.rb', line 20 def self.from_json(json) price = CardmarketPrices.new price.average_sell_price = json['averageSellPrice'] price.low_price = json['lowPrice'] price.trend_price = json['trendPrice'] price.german_pro_low = json['germanProLow'] price.suggested_price = json['suggestedPrice'] price.reverse_holo_sell = json['reverseHoloSell'] price.reverse_holo_low = json['reverseHoloLow'] price.reverse_holo_trend = json['reverseHoloTrend'] price.low_price_ex_plus = json['lowPriceExPlus'] price.avg1 = json['avg1'] price.avg7 = json['avg7'] price.avg30 = json['avg30'] price.reverse_holo_avg1 = json['reverseHoloAvg1'] price.reverse_holo_avg7 = json['reverseHoloAvg7'] price.reverse_holo_avg30 = json['reverseHoloAvg30'] price end |