PokemonTCG/pokemon-tcg-sdk-ruby

View on GitHub
lib/pokemon_tcg_sdk/resistance.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module Pokemon
  class Resistance
    attr_accessor :type, :value

    def self.from_json(json)
      resistance = Resistance.new
      resistance.type = json['type']
      resistance.value = json['value']

      resistance
    end
  end
end