Class: DCell::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/dcell/messages.rb

Direct Known Subclasses

Find, Heartbeat, List, Relay

Defined Under Namespace

Classes: Find, Heartbeat, List, Relay

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMessage

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

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/dcell/messages.rb', line 3

def id
  @id
end