Class: Etna::Filesystem::SftpFilesystem::SftpFile

Inherits:
Object
  • Object
show all
Defined in:
lib/etna/filesystem.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(metadata) ⇒ SftpFile

Returns a new instance of SftpFile.



386
387
388
389
390
391
# File 'lib/etna/filesystem.rb', line 386

def initialize()
   = .split(" ")
  @size = [4].to_i
  @perms = .first
  @name = [8]
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



384
385
386
# File 'lib/etna/filesystem.rb', line 384

def name
  @name
end

#sizeObject (readonly)

Returns the value of attribute size.



384
385
386
# File 'lib/etna/filesystem.rb', line 384

def size
  @size
end