Class: Event::CardPurchased

Inherits:
Base show all
Defined in:
lib/ascension/events.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cardObject

Returns the value of attribute card.



58
59
60
# File 'lib/ascension/events.rb', line 58

def card
  @card
end

Instance Method Details

#card_typeObject



62
63
64
# File 'lib/ascension/events.rb', line 62

def card_type
  card.class
end

#keyObject



65
66
67
# File 'lib/ascension/events.rb', line 65

def key
  [realm,card_type]
end

#realmObject



59
60
61
# File 'lib/ascension/events.rb', line 59

def realm
  card.realm
end