Class: IRCSupport::Message::Part
- Inherits:
-
IRCSupport::Message
- Object
- IRCSupport::Message
- IRCSupport::Message::Part
- Defined in:
- lib/ircsupport/message.rb
Instance Attribute Summary collapse
-
#channel ⇒ String
The name of the channel being parted.
-
#message ⇒ String
The part message, if any.
-
#parter ⇒ String
The user who is parting.
Attributes inherited from IRCSupport::Message
Instance Method Summary collapse
-
#initialize(args) ⇒ Part
constructor
A new instance of Part.
Methods inherited from IRCSupport::Message
Constructor Details
#initialize(args) ⇒ Part
Returns a new instance of Part.
333 334 335 336 337 338 339 |
# File 'lib/ircsupport/message.rb', line 333 def initialize(args) super(args) @parter = args[:prefix] @channel = args[:args][0] @message = args[:args][1] @message = nil if @message && @message.empty? end |
Instance Attribute Details
#channel ⇒ String
Returns The name of the channel being parted.
327 328 329 |
# File 'lib/ircsupport/message.rb', line 327 def channel @channel end |
#message ⇒ String
Returns The part message, if any.
330 331 332 |
# File 'lib/ircsupport/message.rb', line 330 def @message end |
#parter ⇒ String
Returns The user who is parting.
324 325 326 |
# File 'lib/ircsupport/message.rb', line 324 def parter @parter end |