Class: ActiveMatrix::ErrorEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/active_matrix/events.rb

Instance Attribute Summary collapse

Attributes inherited from Event

#handled

Instance Method Summary collapse

Methods inherited from Event

#handled?, #matches?

Methods included from Extensions

#events, #ignore_inspect

Constructor Details

#initialize(error, source) ⇒ ErrorEvent

Returns a new instance of ErrorEvent.



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

def initialize(error, source)
  @error = error
  super(source)
end

Instance Attribute Details

#errorObject

Returns the value of attribute error.



57
58
59
# File 'lib/active_matrix/events.rb', line 57

def error
  @error
end

Instance Method Details

#sourceObject



64
65
66
# File 'lib/active_matrix/events.rb', line 64

def source
  @sender
end