Class: ElVfs::Command::ChangeWorkingDirectory::Result
- Inherits:
-
Result
- Object
- Model
- Result
- ElVfs::Command::ChangeWorkingDirectory::Result
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
#api ⇒ Object
19
|
# File 'lib/el_finder_api/el_vfs/command/change_working_directory.rb', line 19
def api; 2 end
|
#cwd ⇒ Object
20
|
# File 'lib/el_finder_api/el_vfs/command/change_working_directory.rb', line 20
def cwd; arguments.entry end
|
#files ⇒ Object
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
|
#options ⇒ Object
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
|
#uplMaxSize ⇒ Object
21
|
# File 'lib/el_finder_api/el_vfs/command/change_working_directory.rb', line 21
def uplMaxSize; '16m' end
|