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
Class Method Summary collapse
- .stub_entry(entry_name) ⇒ ConvenientService::Feature::Plugins::CanHaveStubbedEntries::Entities::FeatureStub
- .stubbed_entries ⇒ ConvenientService::Support::Cache
- .stubbed_entries_store ⇒ Thread
- .unstub_entry(entry_name) ⇒ ConvenientService::Feature::Plugins::CanHaveStubbedEntries::Entities::FeatureUnstub
Methods included from Support::Concern
Class Method Details
.stub_entry(entry_name) ⇒ ConvenientService::Feature::Plugins::CanHaveStubbedEntries::Entities::FeatureStub
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_entries ⇒ ConvenientService::Support::Cache
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_store ⇒ Thread
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
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 |