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.

Since:

  • 1.0.0

Class Method Summary collapse

Methods included from ConvenientService::Support::Concern

included

Class Method Details

.stub_resultConvenientService::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_resultsConvenientService::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.

Returns:

Since:

  • 1.0.0



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_storeThread

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.

Returns:

  • (Thread)

Since:

  • 1.0.0



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_resultConvenientService::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