Class: MatrixSdk::Event
- Extended by:
- Extensions
- Defined in:
- lib/matrix_sdk/util/events.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#handled ⇒ Object
writeonly
Sets the attribute handled.
Instance Method Summary collapse
- #handled? ⇒ Boolean
-
#initialize(sender) ⇒ Event
constructor
A new instance of Event.
- #matches?(_filter) ⇒ Boolean
Methods included from Extensions
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
37 38 39 |
# File 'lib/matrix_sdk/util/events.rb', line 37 def handled=(value) @handled = value end |
Instance Method Details
#handled? ⇒ Boolean
46 47 48 |
# File 'lib/matrix_sdk/util/events.rb', line 46 def handled? @handled end |
#matches?(_filter) ⇒ Boolean
50 51 52 |
# File 'lib/matrix_sdk/util/events.rb', line 50 def matches?(_filter) true end |