Class: ElVfs::Connector
- Inherits:
-
Object
- Object
- ElVfs::Connector
- Defined in:
- lib/el_finder_api/el_vfs/connector.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.commands ⇒ Object
3 4 5 |
# File 'lib/el_finder_api/el_vfs/connector.rb', line 3 def self.commands @commands ||= {}.with_indifferent_access end |
Instance Method Details
#command_for(params) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/el_finder_api/el_vfs/connector.rb', line 7 def command_for(params) params = params.dup command_name = params.delete(:cmd) params.delete(:format) params.delete(:controller) params.delete(:action) command_class_for(command_name).new(params) end |