diff --git a/lib/pokemon_tcg_sdk/ability.rb b/lib/pokemon_tcg_sdk/ability.rb index 77d0576..7115ffb 100644 --- a/lib/pokemon_tcg_sdk/ability.rb +++ b/lib/pokemon_tcg_sdk/ability.rb @@ -5,6 +5,6 @@ class Ability include Roar::JSON include AbilityRepresenter - attr_accessor :name, :text + attr_accessor :name, :text, :type end end diff --git a/lib/pokemon_tcg_sdk/representers/ability_representer.rb b/lib/pokemon_tcg_sdk/representers/ability_representer.rb index d08fbe8..ca2e343 100644 --- a/lib/pokemon_tcg_sdk/representers/ability_representer.rb +++ b/lib/pokemon_tcg_sdk/representers/ability_representer.rb @@ -6,5 +6,6 @@ module AbilityRepresenter property :name property :text + property :type end end \ No newline at end of file diff --git a/lib/pokemon_tcg_sdk/version.rb b/lib/pokemon_tcg_sdk/version.rb index 6b0b4ad..20f51ba 100644 --- a/lib/pokemon_tcg_sdk/version.rb +++ b/lib/pokemon_tcg_sdk/version.rb @@ -1,3 +1,3 @@ module Pokemon - VERSION = "2.2.0" + VERSION = "2.2.1" end diff --git a/test/card_test.rb b/test/card_test.rb index c5639a3..c0ff015 100644 --- a/test/card_test.rb +++ b/test/card_test.rb @@ -14,6 +14,7 @@ def test_find_returns_one_card assert_equal 'Pokémon', card.supertype assert_equal 'Renegade Pulse', card.ability.name assert_equal "Prevent all effects of attacks, including damage, done to this Pokémon by your opponent's Mega Evolution Pokémon.", card.ability.text + assert_equal 'Ability', card.ability.type assert_equal "170", card.hp assert_equal ["Colorless","Colorless","Colorless"], card.retreat_cost assert_equal "57", card.number