Class: ModSpox::Messages::Incoming::Part
- Defined in:
- lib/mod_spox/messages/incoming/Part.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
channel user parted from.
-
#nick ⇒ Object
readonly
nick that parted from channel.
-
#reason ⇒ Object
readonly
reason for parting.
Attributes inherited from Message
Instance Method Summary collapse
-
#initialize(raw, channel, nick, reason) ⇒ Part
constructor
A new instance of Part.
Constructor Details
#initialize(raw, channel, nick, reason) ⇒ Part
Returns a new instance of Part.
12 13 14 15 16 17 |
# File 'lib/mod_spox/messages/incoming/Part.rb', line 12 def initialize(raw, channel, nick, reason) super(raw) @channel = channel @nick = nick @reason = reason end |
Instance Attribute Details
#channel ⇒ Object (readonly)
channel user parted from
7 8 9 |
# File 'lib/mod_spox/messages/incoming/Part.rb', line 7 def channel @channel end |
#nick ⇒ Object (readonly)
nick that parted from channel
9 10 11 |
# File 'lib/mod_spox/messages/incoming/Part.rb', line 9 def nick @nick end |
#reason ⇒ Object (readonly)
reason for parting
11 12 13 |
# File 'lib/mod_spox/messages/incoming/Part.rb', line 11 def reason @reason end |