Class: Celluloid::Response

Inherits:
Object show all
Defined in:
lib/vendor/celluloid/lib/celluloid/responses.rb

Overview

Responses to calls

Direct Known Subclasses

ErrorResponse, SuccessResponse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(call_id, value) ⇒ Response

Returns a new instance of Response.



6
7
8
# File 'lib/vendor/celluloid/lib/celluloid/responses.rb', line 6

def initialize(call_id, value)
  @call_id, @value = call_id, value
end

Instance Attribute Details

#call_idObject (readonly)

Returns the value of attribute call_id.



4
5
6
# File 'lib/vendor/celluloid/lib/celluloid/responses.rb', line 4

def call_id
  @call_id
end

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/vendor/celluloid/lib/celluloid/responses.rb', line 4

def value
  @value
end