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
Attributes inherited from Packet
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(size = nil) ⇒ Advertise
constructor
A new instance of Advertise.
Methods inherited from Packet
#id_to_s, #to_json, #to_s, #wrap
Constructor Details
#initialize(size = nil) ⇒ Advertise
Returns a new instance of Advertise.
359 360 361 |
# File 'lib/nanite/packets.rb', line 359 def initialize(size=nil) @size = size end |
Class Method Details
.json_create(o) ⇒ Object
363 364 365 |
# File 'lib/nanite/packets.rb', line 363 def self.json_create(o) new(o['size']) end |