Class: MatrixSdk::Event

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

Direct Known Subclasses

MatrixEvent

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sender) ⇒ Event

Returns a new instance of Event.



117
118
119
120
# File 'lib/matrix_sdk/extensions.rb', line 117

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.



113
114
115
# File 'lib/matrix_sdk/extensions.rb', line 113

def handled=(value)
  @handled = value
end

Instance Method Details

#handled?Boolean

Returns:

  • (Boolean)


122
123
124
# File 'lib/matrix_sdk/extensions.rb', line 122

def handled?
  @handled
end

#matches?(_filter) ⇒ Boolean

Returns:

  • (Boolean)


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

def matches?(_filter)
  true
end