PokemonTCG/pokemon-tcg-sdk-ruby

View on GitHub
lib/pokemon_tcg_sdk/card_images.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module Pokemon
  class CardImages
    attr_accessor :small, :large

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

      images
    end
  end
end