Class: MatrixSdk::Event

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

Direct Known Subclasses

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.



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

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.



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

def handled=(value)
  @handled = value
end

Instance Method Details

#handled?Boolean

Returns:

  • (Boolean)


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

def handled?
  @handled
end

#matches?(_filter) ⇒ Boolean

Returns:

  • (Boolean)


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

def matches?(_filter)
  true
end