Class: Pokemon::SetImages

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#logoObject

Returns the value of attribute logo.



3
4
5
# File 'lib/pokemon_tcg_sdk/set_images.rb', line 3

def 
  @logo
end

#symbolObject

Returns the value of attribute symbol.



3
4
5
# File 'lib/pokemon_tcg_sdk/set_images.rb', line 3

def symbol
  @symbol
end

Class Method Details

.from_json(json) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/pokemon_tcg_sdk/set_images.rb', line 5

def self.from_json(json)
  images = SetImages.new
  images.symbol = json['symbol']
  images. = json['logo']

  images
end