Sha256: b70af5a203119ef9a40ff5027b99d3a43d602457eabd5b7b4494836a289f49d2

Contents?: true

Size: 223 Bytes

Versions: 8

Compression:

Stored size: 223 Bytes

Contents

module Pokemon
  class AncientTrait
    attr_accessor :name, :text

    def self.from_json(json)
      trait = AncientTrait.new
      trait.name = json['name']
      trait.text = json['text']

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