Class: Event::CardPurchased
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.
58 59 60 |
# File 'lib/ascension/events.rb', line 58 def card @card end |
Instance Method Details
#card_type ⇒ Object
62 63 64 |
# File 'lib/ascension/events.rb', line 62 def card_type card.class end |
#key ⇒ Object
65 66 67 |
# File 'lib/ascension/events.rb', line 65 def key [realm,card_type] end |
#realm ⇒ Object
59 60 61 |
# File 'lib/ascension/events.rb', line 59 def realm card.realm end |