Class: Pollen::IncomingConnection

Inherits:
Object
  • Object
show all
Defined in:
lib/pollen.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#eventObject (readonly)

Returns the value of attribute event.



19
20
21
# File 'lib/pollen.rb', line 19

def event
  @event
end

#payloadObject (readonly)

Returns the value of attribute payload.



19
20
21
# File 'lib/pollen.rb', line 19

def payload
  @payload
end

#socketObject (readonly)

Returns the value of attribute socket.



19
20
21
# File 'lib/pollen.rb', line 19

def socket
  @socket
end

#stream_idObject (readonly)

Returns the value of attribute stream_id.



19
20
21
# File 'lib/pollen.rb', line 19

def stream_id
  @stream_id
end

#terminate_atObject (readonly)

Returns the value of attribute terminate_at.



19
20
21
# File 'lib/pollen.rb', line 19

def terminate_at
  @terminate_at
end