Class: ModSpox::Messages::Internal::EstablishConnection

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(server = nil, port = nil, password = nil) ⇒ EstablishConnection

server

Server to connect to

port

Port to connect to

password

password to connect



14
15
16
17
18
# File 'lib/mod_spox/messages/internal/EstablishConnection.rb', line 14

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

Instance Attribute Details

#passwordObject (readonly)

password for connection to server



10
11
12
# File 'lib/mod_spox/messages/internal/EstablishConnection.rb', line 10

def password
  @password
end

#portObject (readonly)

port to connect to



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

def port
  @port
end

#serverObject (readonly)

server to connect to



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

def server
  @server
end