Class: Irc::WhoisMessage
- Inherits:
-
BasicUserMessage
- Object
- BasicUserMessage
- Irc::WhoisMessage
- Defined in:
- lib/rbot/message.rb
Overview
class to manage WHOIS replies
Instance Attribute Summary collapse
-
#whois ⇒ Object
readonly
Returns the value of attribute whois.
Attributes inherited from BasicUserMessage
#bot, #ignored, #in_thread, #logmessage, #message, #plainmessage, #replied, #server, #source, #target, #time
Instance Method Summary collapse
-
#initialize(bot, server, source, target, whois) ⇒ WhoisMessage
constructor
A new instance of WhoisMessage.
- #inspect ⇒ Object
Methods inherited from BasicUserMessage
#address?, #botuser, #identified?, #parse_channel_list, #prefixed?, #recurse_depth, #recurse_depth=, #sourceaddress, #sourcenick, strip_formatting, strip_initial_formatting, stripcolour
Constructor Details
#initialize(bot, server, source, target, whois) ⇒ WhoisMessage
Returns a new instance of WhoisMessage.
603 604 605 606 607 |
# File 'lib/rbot/message.rb', line 603 def initialize(bot, server, source, target, whois) super(bot, server, source, target, "") @address = (target == @bot.myself) @whois = whois end |
Instance Attribute Details
#whois ⇒ Object (readonly)
Returns the value of attribute whois.
602 603 604 |
# File 'lib/rbot/message.rb', line 602 def whois @whois end |
Instance Method Details
#inspect ⇒ Object
609 610 611 612 |
# File 'lib/rbot/message.rb', line 609 def inspect fields = ' whois=' << whois.inspect super(fields) end |