Class: Doom::Net::Transport::Peer

Inherits:
Struct
  • Object
show all
Defined in:
lib/doom/net/transport.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hostObject

Returns the value of attribute host

Returns:

  • (Object)

    the current value of host



20
21
22
# File 'lib/doom/net/transport.rb', line 20

def host
  @host
end

#player_idObject

Returns the value of attribute player_id

Returns:

  • (Object)

    the current value of player_id



20
21
22
# File 'lib/doom/net/transport.rb', line 20

def player_id
  @player_id
end

#portObject

Returns the value of attribute port

Returns:

  • (Object)

    the current value of port



20
21
22
# File 'lib/doom/net/transport.rb', line 20

def port
  @port
end

Instance Method Details

#keyObject



21
22
23
# File 'lib/doom/net/transport.rb', line 21

def key
  "#{host}:#{port}"
end