Class: ModSpox::Messages::Outgoing::Topic

Inherits:
Object
  • Object
show all
Defined in:
lib/mod_spox/messages/outgoing/Topic.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#channelObject (readonly)

channel to set topic



6
7
8
# File 'lib/mod_spox/messages/outgoing/Topic.rb', line 6

def channel
  @channel
end

#topicObject (readonly)

the topic



8
9
10
# File 'lib/mod_spox/messages/outgoing/Topic.rb', line 8

def topic
  @topic
end