Sha256: 28540e0e461bb37439d8870f41f64e02c707e005e1aedc39698ddfc26ae3d832

Contents?: true

Size: 244 Bytes

Versions: 8

Compression:

Stored size: 244 Bytes

Contents

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
  

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pokemon_tcg_sdk-4.5.0 lib/pokemon_tcg_sdk/resistance.rb
pokemon_tcg_sdk-4.4.0 lib/pokemon_tcg_sdk/resistance.rb
pokemon_tcg_sdk-4.3.0 lib/pokemon_tcg_sdk/resistance.rb
pokemon_tcg_sdk-4.2.1 lib/pokemon_tcg_sdk/resistance.rb
pokemon_tcg_sdk-4.2.0 lib/pokemon_tcg_sdk/resistance.rb
pokemon_tcg_sdk-4.1.1 lib/pokemon_tcg_sdk/resistance.rb
pokemon_tcg_sdk-4.1.0 lib/pokemon_tcg_sdk/resistance.rb
pokemon_tcg_sdk-4.0.0 lib/pokemon_tcg_sdk/resistance.rb