Class: ConvenientService::Service::Plugins::CanHaveStubbedResults::Middleware
- Inherits:
-
MethodChainMiddleware
- Object
- ConvenientService::Service::Plugins::CanHaveStubbedResults::Middleware
- Defined in:
- lib/convenient_service/service/plugins/can_have_stubbed_results/middleware.rb
Instance Method Summary collapse
Instance Method Details
#next ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
13 14 15 16 17 18 |
# File 'lib/convenient_service/service/plugins/can_have_stubbed_results/middleware.rb', line 13 def next(...) return cache[key_with_arguments] if cache.exist?(key_with_arguments) return cache[key_without_arguments] if cache.exist?(key_without_arguments) chain.next(...) end |