Class: ElVfs::Command::ChangeWorkingDirectory::Result

Inherits:
Result
  • Object
show all
Defined in:
lib/el_finder_api/el_vfs/command/change_working_directory.rb

Instance Attribute Summary

Attributes inherited from Result

#arguments, #execute_command

Instance Method Summary collapse

Methods inherited from Model

#attributes=, #el_hash, #initialize, options, #to_el_hash

Constructor Details

This class inherits a constructor from ElVfs::Model

Instance Method Details

#apiObject



19
# File 'lib/el_finder_api/el_vfs/command/change_working_directory.rb', line 19

def api;        2               end

#cwdObject



20
# File 'lib/el_finder_api/el_vfs/command/change_working_directory.rb', line 20

def cwd;        arguments.entry end

#filesObject



23
24
25
26
27
# File 'lib/el_finder_api/el_vfs/command/change_working_directory.rb', line 23

def files
  files = arguments.entry.children.all
  files += Entry.where(['ancestry_depth <= ?', 2]).only_directories if arguments.tree
  files.uniq
end

#optionsObject



29
30
31
# File 'lib/el_finder_api/el_vfs/command/change_working_directory.rb', line 29

def options
  {path: arguments.entry.el_vfs_path, url: arguments.entry.url, disabled: [], separator: '/', copyOverwrite: 1, archivers: {create: [], extract: []}}
end

#uplMaxSizeObject



21
# File 'lib/el_finder_api/el_vfs/command/change_working_directory.rb', line 21

def uplMaxSize; '16m'           end