Class: Qpid::Proton::Event::EventBase
- Inherits:
-
Object
- Object
- Qpid::Proton::Event::EventBase
- Defined in:
- lib/event/event_base.rb
Overview
EventBase is the foundation for creating application-specific events.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#class_name ⇒ Object
readonly
Returns the name for the class associated with this event.
-
#context ⇒ Object
readonly
Returns the associated context object for the event.
-
#type ⇒ Object
readonly
Returns the type of the event.
Instance Method Summary collapse
-
#dispatch(handler) ⇒ Object
Invokes the type-specific method on the provided handler.
-
#initialize(class_name, context, type) ⇒ EventBase
constructor
Creates a new event with the specific class_name and context of the specified type.
Constructor Details
#initialize(class_name, context, type) ⇒ EventBase
Creates a new event with the specific class_name and context of the specified type.
75 76 77 78 79 |
# File 'lib/event/event_base.rb', line 75 def initialize(class_name, context, type) @class_name = class_name @context = context @type = type end |
Instance Attribute Details
#class_name ⇒ Object (readonly)
Returns the name for the class associated with this event.
60 61 62 |
# File 'lib/event/event_base.rb', line 60 def class_name @class_name end |
#context ⇒ Object (readonly)
Returns the associated context object for the event.
63 64 65 |
# File 'lib/event/event_base.rb', line 63 def context @context end |
#type ⇒ Object (readonly)
Returns the type of the event.
66 67 68 |
# File 'lib/event/event_base.rb', line 66 def type @type end |