Class: ConvenientService::Service::Plugins::HasJSendResultShortSyntax::Failure::Middleware
- Inherits:
-
MethodChainMiddleware
- Object
- ConvenientService::Service::Plugins::HasJSendResultShortSyntax::Failure::Middleware
- Defined in:
- lib/convenient_service/service/plugins/has_j_send_result_short_syntax/failure/middleware.rb
Instance Method Summary collapse
Instance Method Details
#next(*args, **kwargs, &block) ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
17 18 19 20 21 |
# File 'lib/convenient_service/service/plugins/has_j_send_result_short_syntax/failure/middleware.rb', line 17 def next(*args, **kwargs, &block) ::ConvenientService.raise Exceptions::BothArgsAndKwargsArePassed.new if args.any? && kwargs.any? args.any? ? failure_from_args : failure_from_kwargs end |