Module: ConvenientService::Feature::Plugins::CanHaveStubbedEntries::Concern

Extended by:
ClassMethods
Includes:
Support::Concern
Defined in:
lib/convenient_service/feature/plugins/can_have_stubbed_entries/concern.rb

Overview

Since:

  • 1.0.0

Class Method Summary collapse

Methods included from Support::Concern

included

Class Method Details

.stub_entry(entry_name) ⇒ ConvenientService::Feature::Plugins::CanHaveStubbedEntries::Entities::FeatureStub

Parameters:

  • entry_name (Symbol, String)

Returns:

Since:

  • 1.0.0



58
59
60
# File 'lib/convenient_service/feature/plugins/can_have_stubbed_entries/concern.rb', line 58

def stub_entry(entry_name)
  Entities::FeatureStub.new(feature_class: self, entry_name: entry_name)
end

.stubbed_entriesConvenientService::Support::Cache

Returns:

Since:

  • 1.0.0



50
51
52
# File 'lib/convenient_service/feature/plugins/can_have_stubbed_entries/concern.rb', line 50

def stubbed_entries
  Commands::FetchFeatureStubbedEntriesCache.call(feature: self)
end

.stubbed_entries_storeThread

Returns:

  • (Thread)

Since:

  • 1.0.0



32
33
34
# File 'lib/convenient_service/feature/plugins/can_have_stubbed_entries/concern.rb', line 32

def stubbed_entries_store
  ::Thread.current
end

.unstub_entry(entry_name) ⇒ ConvenientService::Feature::Plugins::CanHaveStubbedEntries::Entities::FeatureUnstub

Parameters:

  • entry_name (Symbol, String)

Returns:

Since:

  • 1.0.0



66
67
68
# File 'lib/convenient_service/feature/plugins/can_have_stubbed_entries/concern.rb', line 66

def unstub_entry(entry_name)
  Entities::FeatureUnstub.new(feature_class: self, entry_name: entry_name)
end