Class: Event::CardPlayed

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.



37
38
39
# File 'lib/ascension/events.rb', line 37

def card
  @card
end

Instance Method Details

#card_typeObject



41
42
43
# File 'lib/ascension/events.rb', line 41

def card_type
  card.class
end

#keyObject



44
45
46
# File 'lib/ascension/events.rb', line 44

def key
  [realm,card_type]
end

#realmObject



38
39
40
# File 'lib/ascension/events.rb', line 38

def realm
  card.realm
end