Module: Faire::Runner
- Defined in:
- lib/faire/runner.rb
Instance Method Summary collapse
Instance Method Details
#run(input = {}) ⇒ Object
3 4 5 6 |
# File 'lib/faire/runner.rb', line 3 def run(input = {}) object = new(input) Interactor.new(object).tap(&:validate_and_execute) end |
#run!(input = {}) ⇒ Object
8 9 10 11 12 |
# File 'lib/faire/runner.rb', line 8 def run!(input = {}) interactor = new(input) interactor.validate! interactor.execute end |