Class: Whiskey::Server::Connection
- Inherits:
-
Object
- Object
- Whiskey::Server::Connection
- Extended by:
- Forwardable
- Defined in:
- lib/whiskey/server/connection.rb
Instance Attribute Summary collapse
-
#socket ⇒ Object
readonly
Returns the value of attribute socket.
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(socket) ⇒ Connection
constructor
A new instance of Connection.
- #process ⇒ Object
Constructor Details
#initialize(socket) ⇒ Connection
Returns a new instance of Connection.
8 9 10 |
# File 'lib/whiskey/server/connection.rb', line 8 def initialize(socket) @socket = socket end |
Instance Attribute Details
#socket ⇒ Object (readonly)
Returns the value of attribute socket.
6 7 8 |
# File 'lib/whiskey/server/connection.rb', line 6 def socket @socket end |
Instance Method Details
#id ⇒ Object
12 13 14 |
# File 'lib/whiskey/server/connection.rb', line 12 def id "#{ip}:#{port}" end |
#process ⇒ Object
16 17 18 |
# File 'lib/whiskey/server/connection.rb', line 16 def process write cycle end |