Class: Pollen::IncomingConnection
- Inherits:
-
Object
- Object
- Pollen::IncomingConnection
- Defined in:
- lib/pollen.rb
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#socket ⇒ Object
readonly
Returns the value of attribute socket.
-
#stream_id ⇒ Object
readonly
Returns the value of attribute stream_id.
-
#terminate_at ⇒ Object
readonly
Returns the value of attribute terminate_at.
Instance Method Summary collapse
-
#initialize(stream_id, socket, event, payload, terminate_at) ⇒ IncomingConnection
constructor
A new instance of IncomingConnection.
Constructor Details
#initialize(stream_id, socket, event, payload, terminate_at) ⇒ IncomingConnection
Returns a new instance of IncomingConnection.
21 22 23 24 25 26 27 |
# File 'lib/pollen.rb', line 21 def initialize(stream_id, socket, event, payload, terminate_at) @stream_id = stream_id @socket = socket @event = event @payload = payload @terminate_at = terminate_at end |
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
19 20 21 |
# File 'lib/pollen.rb', line 19 def event @event end |
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
19 20 21 |
# File 'lib/pollen.rb', line 19 def payload @payload end |
#socket ⇒ Object (readonly)
Returns the value of attribute socket.
19 20 21 |
# File 'lib/pollen.rb', line 19 def socket @socket end |
#stream_id ⇒ Object (readonly)
Returns the value of attribute stream_id.
19 20 21 |
# File 'lib/pollen.rb', line 19 def stream_id @stream_id end |
#terminate_at ⇒ Object (readonly)
Returns the value of attribute terminate_at.
19 20 21 |
# File 'lib/pollen.rb', line 19 def terminate_at @terminate_at end |