Class: Net::IRC::CTCPTime

Inherits:
CTCP
  • Object
show all
Defined in:
lib/net/irc.rb

Constant Summary

Constants inherited from CTCP

Net::IRC::CTCP::CTCP_REGEX

Instance Attribute Summary collapse

Attributes inherited from CTCP

#keyword, #parameters, #source, #target

Instance Method Summary collapse

Methods inherited from CTCP

parse, #to_s

Constructor Details

#initialize(*parameters) ⇒ CTCPTime

Returns a new instance of CTCPTime.



121
122
123
124
125
# File 'lib/net/irc.rb', line 121

def initialize(*parameters)
  @time = parameters.join(' ')
  
  super('TIME', *parameters)
end

Instance Attribute Details

#timeObject

Returns the value of attribute time.



120
121
122
# File 'lib/net/irc.rb', line 120

def time
  @time
end