Class: ModSpox::Messages::Outgoing::Topic
- Inherits:
-
Object
- Object
- ModSpox::Messages::Outgoing::Topic
- Defined in:
- lib/mod_spox/messages/outgoing/Topic.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
channel to set topic.
-
#topic ⇒ Object
readonly
the topic.
Instance Method Summary collapse
-
#initialize(channel, topic) ⇒ Topic
constructor
- channel
- channel to set topic in topic
-
the topic Set the topic for the channel.
Constructor Details
#initialize(channel, topic) ⇒ Topic
- channel
-
channel to set topic in
- topic
-
the topic
Set the topic for the channel
12 13 14 15 |
# File 'lib/mod_spox/messages/outgoing/Topic.rb', line 12 def initialize(channel, topic) @channel = channel @topic = topic end |
Instance Attribute Details
#channel ⇒ Object (readonly)
channel to set topic
6 7 8 |
# File 'lib/mod_spox/messages/outgoing/Topic.rb', line 6 def channel @channel end |
#topic ⇒ Object (readonly)
the topic
8 9 10 |
# File 'lib/mod_spox/messages/outgoing/Topic.rb', line 8 def topic @topic end |