Class: DCell::Message::List
- Inherits:
-
DCell::Message
- Object
- DCell::Message
- DCell::Message::List
- Defined in:
- lib/dcell/messages.rb
Overview
List all registered actors
Instance Attribute Summary collapse
-
#sender ⇒ Object
readonly
Returns the value of attribute sender.
Attributes inherited from DCell::Message
Instance Method Summary collapse
- #dispatch ⇒ Object
-
#initialize(sender) ⇒ List
constructor
A new instance of List.
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
#sender ⇒ Object (readonly)
Returns the value of attribute sender.
39 40 41 |
# File 'lib/dcell/messages.rb', line 39 def sender @sender end |
Instance Method Details
#dispatch ⇒ Object
46 47 48 |
# File 'lib/dcell/messages.rb', line 46 def dispatch @sender << SuccessResponse.new(@id, Celluloid::Actor.registered) end |