Class: ModSpox::Messages::Internal::Connected

Inherits:
Object
  • Object
show all
Defined in:
lib/mod_spox/messages/internal/Connected.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(server, port) ⇒ Connected

server

Server bot is connected to

port

Port bot connected to

Used as notification that the bot has connected to the given server



13
14
15
16
# File 'lib/mod_spox/messages/internal/Connected.rb', line 13

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

Instance Attribute Details

#portObject (readonly)

port connected to



8
9
10
# File 'lib/mod_spox/messages/internal/Connected.rb', line 8

def port
  @port
end

#serverObject (readonly)

server connected to



6
7
8
# File 'lib/mod_spox/messages/internal/Connected.rb', line 6

def server
  @server
end