Class: Net::IRC::RplTopicwhotime
- Inherits:
-
ReplyWithChannel
- Object
- Message
- Reply
- ReplyWithTarget
- ReplyWithChannel
- Net::IRC::RplTopicwhotime
- Defined in:
- lib/net/irc.rb
Overview
333 <target> <channel> <nickname> <time>
Constant Summary
Constants inherited from Message
Instance Attribute Summary collapse
-
#nickname ⇒ Object
Returns the value of attribute nickname.
-
#time ⇒ Object
Returns the value of attribute time.
Attributes inherited from ReplyWithChannel
Attributes inherited from ReplyWithTarget
Attributes inherited from Reply
Attributes inherited from Message
#command, #parameters, #prefix
Instance Method Summary collapse
-
#initialize(target, channel, nickname, time) ⇒ RplTopicwhotime
constructor
A new instance of RplTopicwhotime.
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
#nickname ⇒ Object
Returns the value of attribute nickname.
416 417 418 |
# File 'lib/net/irc.rb', line 416 def nickname @nickname end |
#time ⇒ Object
Returns the value of attribute time.
416 417 418 |
# File 'lib/net/irc.rb', line 416 def time @time end |