Class: ModSpox::Messages::Internal::ConnectionFailed

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(server, port, reason = nil) ⇒ ConnectionFailed

server

server attempted to connect

port

port attempted to connect on

reason: reason for failed connection Failed connection to the server



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

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

Instance Attribute Details

#portObject (readonly)

port attempted



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

def port
  @port
end

#reasonObject (readonly)

reason for failure



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

def reason
  @reason
end

#serverObject (readonly)

server attempted



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

def server
  @server
end