Exception: Packet::DisconnectError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/packet/disconnect_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(t_sock, data = nil) ⇒ DisconnectError

Returns a new instance of DisconnectError.



4
5
6
7
# File 'lib/packet/disconnect_error.rb', line 4

def initialize(t_sock,data = nil)
  @disconnected_socket = t_sock
  @data = data
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



3
4
5
# File 'lib/packet/disconnect_error.rb', line 3

def data
  @data
end

#disconnected_socketObject

Returns the value of attribute disconnected_socket.



3
4
5
# File 'lib/packet/disconnect_error.rb', line 3

def disconnected_socket
  @disconnected_socket
end