Class: Celluloid::Response

Inherits:
Object
  • Object
show all
Defined in:
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, value) ⇒ Response

Returns a new instance of Response.



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

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

Instance Attribute Details

#callObject (readonly)

Returns the value of attribute call.



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

def call
  @call
end

#valueObject (readonly)

Returns the value of attribute value.



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

def value
  @value
end