Class: Pokemon::TcgPlayerPriceValues
- Inherits:
-
Object
- Object
- Pokemon::TcgPlayerPriceValues
- Defined in:
- lib/pokemon_tcg_sdk/tcgplayer.rb
Instance Attribute Summary collapse
-
#direct ⇒ Object
Returns the value of attribute direct.
-
#high ⇒ Object
Returns the value of attribute high.
-
#low ⇒ Object
Returns the value of attribute low.
-
#market ⇒ Object
Returns the value of attribute market.
-
#mid ⇒ Object
Returns the value of attribute mid.
Class Method Summary collapse
Instance Attribute Details
#direct ⇒ Object
Returns the value of attribute direct.
33 34 35 |
# File 'lib/pokemon_tcg_sdk/tcgplayer.rb', line 33 def direct @direct end |
#high ⇒ Object
Returns the value of attribute high.
33 34 35 |
# File 'lib/pokemon_tcg_sdk/tcgplayer.rb', line 33 def high @high end |
#low ⇒ Object
Returns the value of attribute low.
33 34 35 |
# File 'lib/pokemon_tcg_sdk/tcgplayer.rb', line 33 def low @low end |
#market ⇒ Object
Returns the value of attribute market.
33 34 35 |
# File 'lib/pokemon_tcg_sdk/tcgplayer.rb', line 33 def market @market end |
#mid ⇒ Object
Returns the value of attribute mid.
33 34 35 |
# File 'lib/pokemon_tcg_sdk/tcgplayer.rb', line 33 def mid @mid end |
Class Method Details
.from_json(json) ⇒ Object
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/pokemon_tcg_sdk/tcgplayer.rb', line 35 def self.from_json(json) values = TcgPlayerPriceValues.new values.low = json['low'] values.mid = json['mid'] values.high = json['high'] values.market = json['market'] values.direct = json['direct'] values end |