Class: Pokemon::CardImages
- Inherits:
-
Object
- Object
- Pokemon::CardImages
- Defined in:
- lib/pokemon_tcg_sdk/card_images.rb
Instance Attribute Summary collapse
-
#large ⇒ Object
Returns the value of attribute large.
-
#small ⇒ Object
Returns the value of attribute small.
Class Method Summary collapse
Instance Attribute Details
#large ⇒ Object
Returns the value of attribute large.
3 4 5 |
# File 'lib/pokemon_tcg_sdk/card_images.rb', line 3 def large @large end |
#small ⇒ Object
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 |