Class: MatrixSdk::ErrorEvent

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



147
148
149
150
# File 'lib/matrix_sdk/extensions.rb', line 147

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

Instance Attribute Details

#errorObject

Returns the value of attribute error.



145
146
147
# File 'lib/matrix_sdk/extensions.rb', line 145

def error
  @error
end

Instance Method Details

#sourceObject



152
153
154
# File 'lib/matrix_sdk/extensions.rb', line 152

def source
  @sender
end