Class: MatrixSdk::ErrorEvent

Inherits:
Event show all
Defined in:
lib/matrix_sdk/util/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.



58
59
60
61
# File 'lib/matrix_sdk/util/events.rb', line 58

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

Instance Attribute Details

#errorObject

Returns the value of attribute error.



56
57
58
# File 'lib/matrix_sdk/util/events.rb', line 56

def error
  @error
end

Instance Method Details

#sourceObject



63
64
65
# File 'lib/matrix_sdk/util/events.rb', line 63

def source
  @sender
end