Class: ElVfs::Command
- Defined in:
- lib/el_finder_api/el_vfs/command.rb
Direct Known Subclasses
ChangeWorkingDirectory, CopyEntries, CreateDirectory, CreateFile, CreateThumbnail, DestroyEntries, DuplicateEntries, GetAncestors, GetDescendants, ListNames, PackEntries, Ping, ReadFileBody, RenameEntry, ResizeImage, SendFile, Unknown, UnpackEntry, UpdateFileBody, UploadFiles
Defined Under Namespace
Classes: Arguments, ChangeWorkingDirectory, CopyEntries, CreateDirectory, CreateFile, CreateThumbnail, DestroyEntries, DuplicateEntries, Error, GetAncestors, GetDescendants, ListNames, PackEntries, Ping, ReadFileBody, RenameEntry, ResizeImage, Result, SendFile, Unknown, UnpackEntry, UpdateFileBody, UploadFiles
Instance Attribute Summary collapse
-
#arguments ⇒ Object
Returns the value of attribute arguments.
-
#error ⇒ Object
Returns the value of attribute error.
-
#result ⇒ Object
Returns the value of attribute result.
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(init_params) ⇒ Command
constructor
A new instance of Command.
- #run ⇒ Object
Methods inherited from Model
#attributes=, #el_hash, options, #to_el_hash
Constructor Details
#initialize(init_params) ⇒ Command
Returns a new instance of Command.
44 45 46 |
# File 'lib/el_finder_api/el_vfs/command.rb', line 44 def initialize(init_params) self.arguments = "#{self.class.name}::Arguments".constantize.new(init_params) end |
Instance Attribute Details
#arguments ⇒ Object
Returns the value of attribute arguments.
23 24 25 |
# File 'lib/el_finder_api/el_vfs/command.rb', line 23 def arguments @arguments end |
#error ⇒ Object
Returns the value of attribute error.
23 24 25 |
# File 'lib/el_finder_api/el_vfs/command.rb', line 23 def error @error end |
#result ⇒ Object
Returns the value of attribute result.
23 24 25 |
# File 'lib/el_finder_api/el_vfs/command.rb', line 23 def result @result end |
Instance Method Details
#headers ⇒ Object
52 53 54 |
# File 'lib/el_finder_api/el_vfs/command.rb', line 52 def headers @headers ||= {} end |
#run ⇒ Object
48 49 50 |
# File 'lib/el_finder_api/el_vfs/command.rb', line 48 def run self.result = "#{self.class.name}::Result".constantize.new(:arguments => arguments, :execute_command => execute_command) end |