Exception: Packet::DisconnectError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Packet::DisconnectError
- Defined in:
- lib/packet/disconnect_error.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#disconnected_socket ⇒ Object
Returns the value of attribute disconnected_socket.
Instance Method Summary collapse
-
#initialize(t_sock, data = nil) ⇒ DisconnectError
constructor
A new instance of DisconnectError.
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
#data ⇒ Object
Returns the value of attribute data.
3 4 5 |
# File 'lib/packet/disconnect_error.rb', line 3 def data @data end |
#disconnected_socket ⇒ Object
Returns the value of attribute disconnected_socket.
3 4 5 |
# File 'lib/packet/disconnect_error.rb', line 3 def disconnected_socket @disconnected_socket end |