Class: Celluloid::Response
- Inherits:
-
Object
- Object
- Celluloid::Response
- Defined in:
- lib/celluloid/responses.rb
Overview
Responses to calls
Direct Known Subclasses
Instance Attribute Summary collapse
-
#call ⇒ Object
readonly
Returns the value of attribute call.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(call, value) ⇒ Response
constructor
A new instance of Response.
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
#call ⇒ Object (readonly)
Returns the value of attribute call.
4 5 6 |
# File 'lib/celluloid/responses.rb', line 4 def call @call end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
4 5 6 |
# File 'lib/celluloid/responses.rb', line 4 def value @value end |