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