Sha256: 87ad883a6256ca3e24bf33dabbb6ed5e91ed0c0e0483891e54ad4ac326b4d504

Contents?: true

Size: 230 Bytes

Versions: 8

Compression:

Stored size: 230 Bytes

Contents

module Pokemon
  class Weakness
    attr_accessor :type, :value

    def self.from_json(json)
      weakness = Weakness.new
      weakness.type = json['type']
      weakness.value = json['value']

      weakness
    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/weakness.rb
pokemon_tcg_sdk-4.4.0 lib/pokemon_tcg_sdk/weakness.rb
pokemon_tcg_sdk-4.3.0 lib/pokemon_tcg_sdk/weakness.rb
pokemon_tcg_sdk-4.2.1 lib/pokemon_tcg_sdk/weakness.rb
pokemon_tcg_sdk-4.2.0 lib/pokemon_tcg_sdk/weakness.rb
pokemon_tcg_sdk-4.1.1 lib/pokemon_tcg_sdk/weakness.rb
pokemon_tcg_sdk-4.1.0 lib/pokemon_tcg_sdk/weakness.rb
pokemon_tcg_sdk-4.0.0 lib/pokemon_tcg_sdk/weakness.rb