Class: Nanite::Advertise
Overview
packet that is sent by workers to the mapper when worker initially comes online to advertise it’s services
Instance Attribute Summary collapse
-
#target ⇒ Object
Returns the value of attribute target.
Attributes inherited from Packet
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(size = nil, target = nil) ⇒ Advertise
constructor
A new instance of Advertise.
Methods inherited from Packet
Constructor Details
#initialize(size = nil, target = nil) ⇒ Advertise
Returns a new instance of Advertise.
355 356 357 358 |
# File 'lib/nanite/packets.rb', line 355 def initialize(size = nil, target = nil) @size = size @target = target end |
Instance Attribute Details
#target ⇒ Object
Returns the value of attribute target.
353 354 355 |
# File 'lib/nanite/packets.rb', line 353 def target @target end |
Class Method Details
.json_create(o) ⇒ Object
360 361 362 |
# File 'lib/nanite/packets.rb', line 360 def self.json_create(o) new(o['size']) end |