Class: DCell::Message
- Inherits:
-
Object
- Object
- DCell::Message
- Defined in:
- lib/dcell/messages.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Find, Heartbeat, List, Relay, SystemEvent
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize ⇒ Message
Returns a new instance of Message.
5 6 7 8 9 |
# File 'lib/dcell/messages.rb', line 5 def initialize # Memoize the original object ID so it will get marshalled # Perhaps this should use a real UUID scheme @id = object_id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/dcell/messages.rb', line 3 def id @id end |