Class: Nanite::UnRegister
Overview
packet that means deregister an agent from the mappers
from is sender identity
Instance Attribute Summary collapse
-
#identity ⇒ Object
Returns the value of attribute identity.
Attributes inherited from Packet
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(identity, size = nil) ⇒ UnRegister
constructor
A new instance of UnRegister.
- #to_s ⇒ Object
Methods inherited from Packet
Constructor Details
#initialize(identity, size = nil) ⇒ UnRegister
Returns a new instance of UnRegister.
309 310 311 312 |
# File 'lib/nanite/packets.rb', line 309 def initialize(identity, size=nil) @identity = identity @size = size end |
Instance Attribute Details
#identity ⇒ Object
Returns the value of attribute identity.
307 308 309 |
# File 'lib/nanite/packets.rb', line 307 def identity @identity end |
Class Method Details
.json_create(o) ⇒ Object
314 315 316 317 |
# File 'lib/nanite/packets.rb', line 314 def self.json_create(o) i = o['data'] new(i['identity'], o['size']) end |
Instance Method Details
#to_s ⇒ Object
319 320 321 |
# File 'lib/nanite/packets.rb', line 319 def to_s "#{super} #{id_to_s(identity)}" end |