Class: ModSpox::Messages::Incoming::Topic

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

Instance Attribute Summary collapse

Attributes inherited from Message

#raw_content, #time

Instance Method Summary collapse

Constructor Details

#initialize(raw, channel, topic) ⇒ Topic

Returns a new instance of Topic.



12
13
14
15
16
# File 'lib/mod_spox/messages/incoming/Topic.rb', line 12

def initialize(raw, channel, topic)
    super(raw)
    @channel = @channel
    @topic = @topic
end

Instance Attribute Details

#channelObject (readonly)

channel topic was set



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

def channel
  @channel
end

#topicObject (readonly)

topic messages



10
11
12
# File 'lib/mod_spox/messages/incoming/Topic.rb', line 10

def topic
  @topic
end