Sha256: 72a2f521335c5868d14bc6a7f2effb83919c19c2a69f2bbd621146ba48cafea6

Contents?: true

Size: 262 Bytes

Versions: 8

Compression:

Stored size: 262 Bytes

Contents

module Pokemon
  class Ability
    attr_accessor :name, :text, :type

    def self.from_json(json)
      ability = Ability.new
      ability.name = json['name']
      ability.text = json['text']
      ability.type = json['type']

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