Class: Pokemon::TcgPlayerPriceValues

Inherits:
Object
  • Object
show all
Defined in:
lib/pokemon_tcg_sdk/tcgplayer.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#directObject

Returns the value of attribute direct.



33
34
35
# File 'lib/pokemon_tcg_sdk/tcgplayer.rb', line 33

def direct
  @direct
end

#highObject

Returns the value of attribute high.



33
34
35
# File 'lib/pokemon_tcg_sdk/tcgplayer.rb', line 33

def high
  @high
end

#lowObject

Returns the value of attribute low.



33
34
35
# File 'lib/pokemon_tcg_sdk/tcgplayer.rb', line 33

def low
  @low
end

#marketObject

Returns the value of attribute market.



33
34
35
# File 'lib/pokemon_tcg_sdk/tcgplayer.rb', line 33

def market
  @market
end

#midObject

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