Class: Nanite::FileStart
Overview
packet that means start of a file transfer operation
Instance Attribute Summary collapse
-
#dest ⇒ Object
Returns the value of attribute dest.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#token ⇒ Object
Returns the value of attribute token.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(filename, dest, token) ⇒ FileStart
constructor
A new instance of FileStart.
Methods inherited from Packet
Constructor Details
#initialize(filename, dest, token) ⇒ FileStart
Returns a new instance of FileStart.
20 21 22 23 24 |
# File 'lib/nanite/packets.rb', line 20 def initialize(filename, dest, token) @filename = filename @dest = dest @token = token end |
Instance Attribute Details
#dest ⇒ Object
Returns the value of attribute dest.
19 20 21 |
# File 'lib/nanite/packets.rb', line 19 def dest @dest end |
#filename ⇒ Object
Returns the value of attribute filename.
19 20 21 |
# File 'lib/nanite/packets.rb', line 19 def filename @filename end |
#token ⇒ Object
Returns the value of attribute token.
19 20 21 |
# File 'lib/nanite/packets.rb', line 19 def token @token end |
Class Method Details
.json_create(o) ⇒ Object
26 27 28 29 |
# File 'lib/nanite/packets.rb', line 26 def self.json_create(o) i = o['data'] new(i['filename'], i['dest'], i['token']) end |