Class: ModSpox::Messages::Incoming::Quit

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

Instance Attribute Summary collapse

Attributes inherited from Message

#raw_content, #time

Instance Method Summary collapse

Constructor Details

#initialize(raw, nick, message) ⇒ Quit

Returns a new instance of Quit.



10
11
12
13
14
# File 'lib/mod_spox/messages/incoming/Quit.rb', line 10

def initialize(raw, nick, message)
    super(raw)
    @nick = nick
    @message = message
end

Instance Attribute Details

#messageObject (readonly)

quit message



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

def message
  @message
end

#nickObject (readonly)

nick that quit



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

def nick
  @nick
end