Class: DCell::Message::List

Inherits:
DCell::Message show all
Defined in:
lib/dcell/messages.rb

Overview

List all registered actors

Instance Attribute Summary collapse

Attributes inherited from DCell::Message

#id

Instance Method Summary collapse

Constructor Details

#initialize(caller) ⇒ List

Returns a new instance of List.



41
42
43
44
# File 'lib/dcell/messages.rb', line 41

def initialize(caller)
  super()
  @caller = caller
end

Instance Attribute Details

#callerObject (readonly)

Returns the value of attribute caller.



39
40
41
# File 'lib/dcell/messages.rb', line 39

def caller
  @caller
end

Instance Method Details

#dispatchObject



46
47
48
# File 'lib/dcell/messages.rb', line 46

def dispatch
  @caller << SuccessResponse.new(@id, Celluloid::Actor.registered)
end