Class: Nanite::FileEnd
Overview
packet that means end of a file transfer operation
Instance Attribute Summary collapse
-
#meta ⇒ Object
Returns the value of attribute meta.
-
#token ⇒ Object
Returns the value of attribute token.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(token, meta) ⇒ FileEnd
constructor
A new instance of FileEnd.
Methods inherited from Packet
Constructor Details
#initialize(token, meta) ⇒ FileEnd
Returns a new instance of FileEnd.
36 37 38 39 |
# File 'lib/nanite/packets.rb', line 36 def initialize(token, ) @token = token @meta = end |
Instance Attribute Details
#meta ⇒ Object
Returns the value of attribute meta.
35 36 37 |
# File 'lib/nanite/packets.rb', line 35 def @meta end |
#token ⇒ Object
Returns the value of attribute token.
35 36 37 |
# File 'lib/nanite/packets.rb', line 35 def token @token end |
Class Method Details
.json_create(o) ⇒ Object
41 42 43 44 |
# File 'lib/nanite/packets.rb', line 41 def self.json_create(o) i = o['data'] new(i['token'], i['meta']) end |