Class: Flexo::Events::PartEvent
- Inherits:
-
Flexo::Event
- Object
- Flexo::Event
- Flexo::Events::PartEvent
- Defined in:
- lib/flexo/events/part.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Attributes inherited from Flexo::Event
Instance Method Summary collapse
-
#initialize(*args) ⇒ PartEvent
constructor
A new instance of PartEvent.
Methods inherited from Flexo::Event
Constructor Details
#initialize(*args) ⇒ PartEvent
7 8 9 10 11 |
# File 'lib/flexo/events/part.rb', line 7 def initialize(*args) super @channel = @data.params[0] @reason = @data.string end |
Instance Attribute Details
#channel ⇒ Object (readonly)
Returns the value of attribute channel.
4 5 6 |
# File 'lib/flexo/events/part.rb', line 4 def channel @channel end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
5 6 7 |
# File 'lib/flexo/events/part.rb', line 5 def reason @reason end |