Module: ConvenientService::Service::Plugins::CanHaveStubbedResults::Concern Private
- Includes:
- ConvenientService::Support::Concern
- Defined in:
- lib/convenient_service/service/plugins/can_have_stubbed_results/concern.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .stub_result ⇒ ConvenientService::Service::Plugins::CanHaveStubbedResults::Entities::ServiceStub private
- .stubbed_results ⇒ ConvenientService::Support::Cache private
- .stubbed_results_store ⇒ Thread private
- .unstub_result ⇒ ConvenientService::Service::Plugins::CanHaveStubbedResults::Entities::ServiceUnstub private
Methods included from ConvenientService::Support::Concern
Class Method Details
.stub_result ⇒ ConvenientService::Service::Plugins::CanHaveStubbedResults::Entities::ServiceStub
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
57 58 59 |
# File 'lib/convenient_service/service/plugins/can_have_stubbed_results/concern.rb', line 57 def stub_result Entities::ServiceStub.new(service_class: self) end |
.stubbed_results ⇒ ConvenientService::Support::Cache
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
50 51 52 |
# File 'lib/convenient_service/service/plugins/can_have_stubbed_results/concern.rb', line 50 def stubbed_results Commands::FetchServiceStubbedResultsCache.call(service: self) end |
.stubbed_results_store ⇒ Thread
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
32 33 34 |
# File 'lib/convenient_service/service/plugins/can_have_stubbed_results/concern.rb', line 32 def stubbed_results_store ::Thread.current end |
.unstub_result ⇒ ConvenientService::Service::Plugins::CanHaveStubbedResults::Entities::ServiceUnstub
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
64 65 66 |
# File 'lib/convenient_service/service/plugins/can_have_stubbed_results/concern.rb', line 64 def unstub_result Entities::ServiceUnstub.new(service_class: self) end |