Class: Doom::Net::Transport::Peer
- Inherits:
-
Struct
- Object
- Struct
- Doom::Net::Transport::Peer
- Defined in:
- lib/doom/net/transport.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#player_id ⇒ Object
Returns the value of attribute player_id.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host
20 21 22 |
# File 'lib/doom/net/transport.rb', line 20 def host @host end |
#player_id ⇒ Object
Returns the value of attribute player_id
20 21 22 |
# File 'lib/doom/net/transport.rb', line 20 def player_id @player_id end |
#port ⇒ Object
Returns the value of attribute port
20 21 22 |
# File 'lib/doom/net/transport.rb', line 20 def port @port end |
Instance Method Details
#key ⇒ Object
21 22 23 |
# File 'lib/doom/net/transport.rb', line 21 def key "#{host}:#{port}" end |