Class: Event::CardPlayed
Instance Attribute Summary collapse
-
#card ⇒ Object
Returns the value of attribute card.
Instance Method Summary collapse
Instance Attribute Details
#card ⇒ Object
Returns the value of attribute card.
37 38 39 |
# File 'lib/ascension/events.rb', line 37 def card @card end |
Instance Method Details
#card_type ⇒ Object
41 42 43 |
# File 'lib/ascension/events.rb', line 41 def card_type card.class end |
#key ⇒ Object
44 45 46 |
# File 'lib/ascension/events.rb', line 44 def key [realm,card_type] end |
#realm ⇒ Object
38 39 40 |
# File 'lib/ascension/events.rb', line 38 def realm card.realm end |