Class: Net::IRC::RplTopicwhotime

Inherits:
ReplyWithChannel show all
Defined in:
lib/net/irc.rb

Overview

333 <target> <channel> <nickname> <time>

Constant Summary

Constants inherited from Message

Message::COMMAND_MAPS

Instance Attribute Summary collapse

Attributes inherited from ReplyWithChannel

#channel

Attributes inherited from ReplyWithTarget

#target

Attributes inherited from Reply

#text

Attributes inherited from Message

#command, #parameters, #prefix

Instance Method Summary collapse

Methods inherited from Message

command_for_number, parse, #prefix?, #to_s, #write

Constructor Details

#initialize(target, channel, nickname, time) ⇒ RplTopicwhotime

Returns a new instance of RplTopicwhotime.



418
419
420
421
422
# File 'lib/net/irc.rb', line 418

def initialize(target, channel, nickname, time)
  @nickname = nickname
  @time = Time.at(time.to_i)
  super(nil, 'RPL_TOPICWHOTIME', target, channel, nickname, time, nil)
end

Instance Attribute Details

#nicknameObject

Returns the value of attribute nickname.



416
417
418
# File 'lib/net/irc.rb', line 416

def nickname
  @nickname
end

#timeObject

Returns the value of attribute time.



416
417
418
# File 'lib/net/irc.rb', line 416

def time
  @time
end