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.



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

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

Instance Attribute Details

#channelObject (readonly)

channel topic was set



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

def channel
  @channel
end

#topicObject (readonly)

topic messages



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

def topic
  @topic
end