Class: ModSpox::Messages::Internal::DCCSocket

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nickObject (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

#socketObject (readonly)

socket



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

def socket
  @socket
end

#socket_idObject (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