Class: ModSpox::Messages::Incoming::Part

Inherits:
Message
  • Object
show all
Defined in:
lib/mod_spox/messages/incoming/Part.rb

Instance Attribute Summary collapse

Attributes inherited from Message

#raw_content, #time

Instance Method Summary collapse

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

#channelObject (readonly)

channel user parted from



7
8
9
# File 'lib/mod_spox/messages/incoming/Part.rb', line 7

def channel
  @channel
end

#nickObject (readonly)

nick that parted from channel



9
10
11
# File 'lib/mod_spox/messages/incoming/Part.rb', line 9

def nick
  @nick
end

#reasonObject (readonly)

reason for parting



11
12
13
# File 'lib/mod_spox/messages/incoming/Part.rb', line 11

def reason
  @reason
end