Skip to content

Commit

Permalink
Add 'type' property to Ability
Browse files Browse the repository at this point in the history
  • Loading branch information
adback03 committed Oct 16, 2016
1 parent 7b08e35 commit 4376060
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/pokemon_tcg_sdk/ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ class Ability
include Roar::JSON
include AbilityRepresenter

attr_accessor :name, :text
attr_accessor :name, :text, :type
end
end
1 change: 1 addition & 0 deletions lib/pokemon_tcg_sdk/representers/ability_representer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ module AbilityRepresenter

property :name
property :text
property :type
end
end
2 changes: 1 addition & 1 deletion lib/pokemon_tcg_sdk/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Pokemon
VERSION = "2.2.0"
VERSION = "2.2.1"
end
1 change: 1 addition & 0 deletions test/card_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4376060

Please sign in to comment.