Class: Pokemon::CardImages

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#largeObject

Returns the value of attribute large.



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

def large
  @large
end

#smallObject

Returns the value of attribute small.



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

def small
  @small
end

Class Method Details

.from_json(json) ⇒ Object



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

def self.from_json(json)
  images = CardImages.new
  images.small = json['small']
  images.large = json['large']

  images
end