Class: ModSpox::Messages::Outgoing::Squit

Inherits:
Object
  • Object
show all
Defined in:
lib/mod_spox/messages/outgoing/Squit.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(server, comment) ⇒ Squit

server

server to disconnect

comment

reason for disconnection

Disconnect server link. Only available if bot is oper.



12
13
14
15
# File 'lib/mod_spox/messages/outgoing/Squit.rb', line 12

def initialize(server, comment)
    @comment = comment
    @server = server
end

Instance Attribute Details

#commentObject (readonly)

reasone for disconnection



8
9
10
# File 'lib/mod_spox/messages/outgoing/Squit.rb', line 8

def comment
  @comment
end

#serverObject (readonly)

server to disconnect



6
7
8
# File 'lib/mod_spox/messages/outgoing/Squit.rb', line 6

def server
  @server
end