Class: Net::IRC::Notice

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

Overview

NOTICE <target> <text>

Constant Summary

Constants inherited from Message

Message::COMMAND_MAPS

Instance Attribute Summary collapse

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, text) ⇒ Notice

Returns a new instance of Notice.



562
563
564
565
566
567
# File 'lib/net/irc.rb', line 562

def initialize(target, text)
  @target = target
  @text, @ctcp = CTCP.parse(text)
  
  super(nil, 'NOTICE', @target, text)
end

Instance Attribute Details

#ctcpObject

Returns the value of attribute ctcp.



560
561
562
# File 'lib/net/irc.rb', line 560

def ctcp
  @ctcp
end

#targetObject

Returns the value of attribute target.



560
561
562
# File 'lib/net/irc.rb', line 560

def target
  @target
end

#textObject

Returns the value of attribute text.



560
561
562
# File 'lib/net/irc.rb', line 560

def text
  @text
end