Class: IRCSupport::Message::ServerNotice
- Inherits:
-
IRCSupport::Message
- Object
- IRCSupport::Message
- IRCSupport::Message::ServerNotice
- Defined in:
- lib/ircsupport/message.rb
Instance Attribute Summary collapse
-
#message ⇒ String
The text of the notice.
-
#sender ⇒ String
a service, or nothing at all.
-
#target ⇒ String
‘AUTH’ or something else entirely.
Attributes inherited from IRCSupport::Message
Instance Method Summary collapse
-
#initialize(args) ⇒ ServerNotice
constructor
A new instance of ServerNotice.
Methods inherited from IRCSupport::Message
Constructor Details
#initialize(args) ⇒ ServerNotice
Returns a new instance of ServerNotice.
536 537 538 539 540 541 542 543 544 545 |
# File 'lib/ircsupport/message.rb', line 536 def initialize(args) super(args) @sender = args[:prefix] if args[:args].size == 2 @target = args[:args][0] @message = args[:args][1] else @message = args[:args][0] end end |
Instance Attribute Details
#message ⇒ String
Returns The text of the notice.
533 534 535 |
# File 'lib/ircsupport/message.rb', line 533 def @message end |
#sender ⇒ String
a service, or nothing at all.
526 527 528 |
# File 'lib/ircsupport/message.rb', line 526 def sender @sender end |
#target ⇒ String
‘AUTH’ or something else entirely.
530 531 532 |
# File 'lib/ircsupport/message.rb', line 530 def target @target end |