Class: ElVfs::Command::SendFile

Inherits:
ElVfs::Command show all
Defined in:
lib/el_finder_api/el_vfs/command/send_file.rb

Defined Under Namespace

Classes: Arguments

Instance Attribute Summary

Attributes inherited from ElVfs::Command

#arguments, #error, #result

Instance Method Summary collapse

Methods inherited from ElVfs::Command

#headers, #initialize

Methods inherited from Model

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

Constructor Details

This class inherits a constructor from ElVfs::Command

Instance Method Details

#runObject



11
12
13
# File 'lib/el_finder_api/el_vfs/command/send_file.rb', line 11

def run
  self.headers['Location'] = arguments.entry.url
end