PokemonTCG/pokemon-tcg-sdk-ruby

View on GitHub
lib/pokemon_tcg_sdk/ancient_trait.rb

Summary

Maintainability
A
0 mins
Test Coverage
F
50%
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