Class: ElVfs::Command::CopyEntries::Arguments

Inherits:
Arguments show all
Defined in:
lib/el_finder_api/el_vfs/command/copy_entries.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Arguments

#entries, #entry

Methods inherited from Model

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

Constructor Details

This class inherits a constructor from ElVfs::Model

Instance Attribute Details

#cutObject

Returns the value of attribute cut.



6
7
8
# File 'lib/el_finder_api/el_vfs/command/copy_entries.rb', line 6

def cut
  @cut
end

#dstObject

Returns the value of attribute dst.



6
7
8
# File 'lib/el_finder_api/el_vfs/command/copy_entries.rb', line 6

def dst
  @dst
end

#srcObject

Returns the value of attribute src.



6
7
8
# File 'lib/el_finder_api/el_vfs/command/copy_entries.rb', line 6

def src
  @src
end

#targetsObject

Returns the value of attribute targets.



6
7
8
# File 'lib/el_finder_api/el_vfs/command/copy_entries.rb', line 6

def targets
  @targets
end

Instance Method Details

#cut?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/el_finder_api/el_vfs/command/copy_entries.rb', line 12

def cut?
  cut == '1' || cut == 'true' || cut == true
end

#destinationObject



20
21
22
# File 'lib/el_finder_api/el_vfs/command/copy_entries.rb', line 20

def destination
  @destination ||= Entry.find_by_entry_path_hash(dst)
end

#sourceObject



16
17
18
# File 'lib/el_finder_api/el_vfs/command/copy_entries.rb', line 16

def source
  @source ||= Entry..find_by_entry_path_hash(src)
end