Class: ConvenientService::Service::Plugins::HasJSendResultShortSyntax::Middleware
- Inherits:
-
MethodChainMiddleware
- Object
- ConvenientService::Service::Plugins::HasJSendResultShortSyntax::Middleware
- Defined in:
- lib/convenient_service/service/plugins/has_j_send_result_short_syntax/middleware.rb
Instance Method Summary collapse
Instance Method Details
#next(*args, **kwargs, &block) ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
21 22 23 24 25 |
# File 'lib/convenient_service/service/plugins/has_j_send_result_short_syntax/middleware.rb', line 21 def next(*args, **kwargs, &block) ::ConvenientService.raise Exceptions::BothArgsAndKwargsArePassed.new(status: method) if args.any? && kwargs.any? kwargs.any? ? result_from_kwargs : result_from_args end |