Class: ModSpox::Messages::Internal::DCCSocket
- Inherits:
-
Object
- Object
- ModSpox::Messages::Internal::DCCSocket
- Defined in:
- lib/mod_spox/messages/internal/DCCSocket.rb
Instance Attribute Summary collapse
-
#nick ⇒ Object
readonly
Models::Nick this socket is connected to.
-
#socket ⇒ Object
readonly
socket.
-
#socket_id ⇒ Object
readonly
ID of the contained socket.
Instance Method Summary collapse
-
#initialize(id, nick, socket) ⇒ DCCSocket
constructor
A new instance of DCCSocket.
Constructor Details
#initialize(id, nick, socket) ⇒ DCCSocket
Returns a new instance of DCCSocket.
11 12 13 14 15 |
# File 'lib/mod_spox/messages/internal/DCCSocket.rb', line 11 def initialize(id, nick, socket) @socket_id = id @nick = nick @socket = socket end |
Instance Attribute Details
#nick ⇒ Object (readonly)
Models::Nick this socket is connected to
8 9 10 |
# File 'lib/mod_spox/messages/internal/DCCSocket.rb', line 8 def nick @nick end |
#socket ⇒ Object (readonly)
socket
10 11 12 |
# File 'lib/mod_spox/messages/internal/DCCSocket.rb', line 10 def socket @socket end |
#socket_id ⇒ Object (readonly)
ID of the contained socket
6 7 8 |
# File 'lib/mod_spox/messages/internal/DCCSocket.rb', line 6 def socket_id @socket_id end |