Class: Celluloid::Internals::Response

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

Overview

Responses to calls

Direct Known Subclasses

Error, Success

Defined Under Namespace

Classes: Block, Error, Success

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(call, value) ⇒ Response

Returns a new instance of Response.


7
8
9
10
# File 'lib/celluloid/internals/responses.rb', line 7

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

Instance Attribute Details

#callObject (readonly)

Returns the value of attribute call


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

def call
  @call
end

#valueObject (readonly)

Returns the value of attribute value


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

def value
  @value
end

Instance Method Details

#dispatchObject


12
13
14
# File 'lib/celluloid/internals/responses.rb', line 12

def dispatch
  @call.task.resume self
end