Class: ConvenientService::Feature::Plugins::CanHaveStubbedEntries::Commands::DeleteFeatureStubbedEntry
- Inherits:
-
Support::Command
- Object
- Support::Command
- ConvenientService::Feature::Plugins::CanHaveStubbedEntries::Commands::DeleteFeatureStubbedEntry
- Defined in:
- lib/convenient_service/feature/plugins/can_have_stubbed_entries/commands/delete_feature_stubbed_entry.rb
Overview
Instance Attribute Summary collapse
- #arguments ⇒ Object readonly
- #entry ⇒ Object readonly
- #feature ⇒ Object readonly
Instance Method Summary collapse
-
#call ⇒ Object
Can be any type.
- #initialize(feature:, entry:, arguments:) ⇒ void constructor
Methods inherited from Support::Command
Constructor Details
#initialize(feature:, entry:, arguments:) ⇒ void
38 39 40 41 42 |
# File 'lib/convenient_service/feature/plugins/can_have_stubbed_entries/commands/delete_feature_stubbed_entry.rb', line 38 def initialize(feature:, entry:, arguments:) @feature = feature @entry = entry @arguments = arguments end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
30 31 32 |
# File 'lib/convenient_service/feature/plugins/can_have_stubbed_entries/commands/delete_feature_stubbed_entry.rb', line 30 def arguments @arguments end |
#entry ⇒ Object (readonly)
24 25 26 |
# File 'lib/convenient_service/feature/plugins/can_have_stubbed_entries/commands/delete_feature_stubbed_entry.rb', line 24 def entry @entry end |
#feature ⇒ Object (readonly)
18 19 20 |
# File 'lib/convenient_service/feature/plugins/can_have_stubbed_entries/commands/delete_feature_stubbed_entry.rb', line 18 def feature @feature end |
Instance Method Details
#call ⇒ Object
Returns Can be any type.
50 51 52 53 54 55 56 |
# File 'lib/convenient_service/feature/plugins/can_have_stubbed_entries/commands/delete_feature_stubbed_entry.rb', line 50 def call if arguments.nil? cache.default = nil else cache.delete(cache.keygen(*arguments.args, **arguments.kwargs, &arguments.block)) end end |