Class: DCell::Message::Find
- Inherits:
-
DCell::Message
- Object
- DCell::Message
- DCell::Message::Find
- Defined in:
- lib/dcell/messages.rb
Overview
Query a node for the address of an actor
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#sender ⇒ Object
readonly
Returns the value of attribute sender.
Attributes inherited from DCell::Message
Instance Method Summary collapse
- #dispatch ⇒ Object
-
#initialize(sender, name) ⇒ Find
constructor
A new instance of Find.
Constructor Details
#initialize(sender, name) ⇒ Find
Returns a new instance of Find.
27 28 29 30 |
# File 'lib/dcell/messages.rb', line 27 def initialize(sender, name) super() @sender, @name = sender, name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
25 26 27 |
# File 'lib/dcell/messages.rb', line 25 def name @name end |
#sender ⇒ Object (readonly)
Returns the value of attribute sender.
25 26 27 |
# File 'lib/dcell/messages.rb', line 25 def sender @sender end |
Instance Method Details
#dispatch ⇒ Object
32 33 34 |
# File 'lib/dcell/messages.rb', line 32 def dispatch @sender << SuccessResponse.new(@id, Celluloid::Actor[@name]) end |