Class: Pleiades::Command::Factory
- Inherits:
-
Object
- Object
- Pleiades::Command::Factory
- Defined in:
- lib/pleiades/core/command/factory.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(event, path_info) ⇒ Factory
constructor
A new instance of Factory.
- #operate ⇒ Object
Constructor Details
#initialize(event, path_info) ⇒ Factory
Returns a new instance of Factory.
11 12 13 14 |
# File 'lib/pleiades/core/command/factory.rb', line 11 def initialize(event, path_info) @event = event @path_info = path_info end |
Class Method Details
.production(event, path_info) ⇒ Object
6 7 8 9 |
# File 'lib/pleiades/core/command/factory.rb', line 6 def self.production(event, path_info) @factory = new(event, path_info) @factory.operate end |
Instance Method Details
#operate ⇒ Object
16 17 18 |
# File 'lib/pleiades/core/command/factory.rb', line 16 def operate executor_class(decorate_command(command_class)) end |