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(sender) ⇒ List

Returns a new instance of List.



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

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

Instance Attribute Details

#senderObject (readonly)

Returns the value of attribute sender.



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

def sender
  @sender
end

Instance Method Details

#dispatchObject



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

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