Class: ModSpox::Messages::Incoming::TopicInfo

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

Instance Attribute Summary collapse

Attributes inherited from Message

#raw_content

Instance Method Summary collapse

Constructor Details

#initialize(raw, channel, nick, time) ⇒ TopicInfo

Returns a new instance of TopicInfo.



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

def initialize(raw, channel, nick, time)
    super(raw)
    @channel = channel
    @nick = nick
    @time = time
end

Instance Attribute Details

#channelObject (readonly)

channel topic info is for



6
7
8
# File 'lib/mod_spox/messages/incoming/TopicInfo.rb', line 6

def channel
  @channel
end

#nickObject (readonly)

last nick to set topic



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

def nick
  @nick
end

#timeObject (readonly)

time topic was set



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

def time
  @time
end