Module: OmniService::Strict
- Included in:
- Collection, Component, Namespace, Optional, Parallel, Sequence, Shortcut, Transaction
- Defined in:
- lib/omni_service/strict.rb
Overview
Provides call! method that raises OperationFailed on failure. Included in all framework components.
Instance Method Summary collapse
Instance Method Details
#call!(*params, **context) ⇒ Object
29 30 31 32 33 34 |
# File 'lib/omni_service/strict.rb', line 29 def call!(*params, **context) result = call(*params, **context) raise OmniService::OperationFailed, result if result.failure? result end |