Class: MatrixSdk::Event

Inherits:
Object show all
Extended by:
Extensions
Defined in:
lib/matrix_sdk/util/events.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.



41
42
43
44
# File 'lib/matrix_sdk/util/events.rb', line 41

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.



37
38
39
# File 'lib/matrix_sdk/util/events.rb', line 37

def handled=(value)
  @handled = value
end

Instance Method Details

#handled?Boolean

Returns:

  • (Boolean)


46
47
48
# File 'lib/matrix_sdk/util/events.rb', line 46

def handled?
  @handled
end

#matches?(_filter) ⇒ Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/matrix_sdk/util/events.rb', line 50

def matches?(_filter)
  true
end