Class: MatrixSdk::Event

Inherits:
Object show all
Extended by:
Extensions
Defined in:
lib/matrix_sdk/extensions.rb

Direct Known Subclasses

ErrorEvent, MatrixEvent

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Extensions

events, ignore_inspect

Constructor Details

#initialize(sender) ⇒ Event

Returns a new instance of Event.



130
131
132
133
# File 'lib/matrix_sdk/extensions.rb', line 130

def initialize(sender)
  @sender = sender
  @handled = false
end

Instance Attribute Details

#handled=(value) ⇒ Object (writeonly)

Sets the attribute handled

Parameters:

  • value

    the value to set the attribute handled to.



126
127
128
# File 'lib/matrix_sdk/extensions.rb', line 126

def handled=(value)
  @handled = value
end

Instance Method Details

#handled?Boolean

Returns:

  • (Boolean)


135
136
137
# File 'lib/matrix_sdk/extensions.rb', line 135

def handled?
  @handled
end

#matches?(_filter) ⇒ Boolean

Returns:

  • (Boolean)


139
140
141
# File 'lib/matrix_sdk/extensions.rb', line 139

def matches?(_filter)
  true
end