Class: DCell::RPB
- Inherits:
-
Celluloid::BlockProxy
- Object
- Celluloid::BlockProxy
- DCell::RPB
- Defined in:
- lib/dcell/rpc.rb
Instance Method Summary collapse
-
#_dump(level) ⇒ Object
Custom marshaller for compatibility with Celluloid::Mailbox marshalling.
-
#initialize(id, mailbox, execution, arguments) ⇒ RPB
constructor
A new instance of RPB.
Methods inherited from Celluloid::BlockProxy
Constructor Details
#initialize(id, mailbox, execution, arguments) ⇒ RPB
Returns a new instance of RPB.
5 6 7 |
# File 'lib/dcell/rpc.rb', line 5 def initialize(id, mailbox, execution, arguments) @id, @mailbox, @execution, @arguments = id, mailbox, execution, arguments end |
Instance Method Details
#_dump(level) ⇒ Object
Custom marshaller for compatibility with Celluloid::Mailbox marshalling
10 11 12 13 |
# File 'lib/dcell/rpc.rb', line 10 def _dump(level) payload = Marshal.dump [@mailbox, @execution, @arguments] "#{@id}:rpb:#{payload}" end |