Class: ConvenientService::Service::Plugins::CanHaveStubbedResults::Commands::DeleteServiceStubbedResult Private
- Inherits:
-
ConvenientService::Support::Command
- Object
- ConvenientService::Support::Command
- ConvenientService::Service::Plugins::CanHaveStubbedResults::Commands::DeleteServiceStubbedResult
- Defined in:
- lib/convenient_service/service/plugins/can_have_stubbed_results/commands/delete_service_stubbed_result.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #arguments ⇒ Object readonly private
- #service ⇒ Object readonly private
Instance Method Summary collapse
- #call ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result private
- #initialize(service:, arguments:) ⇒ void constructor private
Methods inherited from ConvenientService::Support::Command
Constructor Details
#initialize(service:, arguments:) ⇒ void
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.
31 32 33 34 |
# File 'lib/convenient_service/service/plugins/can_have_stubbed_results/commands/delete_service_stubbed_result.rb', line 31 def initialize(service:, arguments:) @service = service @arguments = arguments end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
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.
24 25 26 |
# File 'lib/convenient_service/service/plugins/can_have_stubbed_results/commands/delete_service_stubbed_result.rb', line 24 def arguments @arguments end |
#service ⇒ Object (readonly)
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.
18 19 20 |
# File 'lib/convenient_service/service/plugins/can_have_stubbed_results/commands/delete_service_stubbed_result.rb', line 18 def service @service end |
Instance Method Details
#call ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result
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.
42 43 44 45 46 47 48 |
# File 'lib/convenient_service/service/plugins/can_have_stubbed_results/commands/delete_service_stubbed_result.rb', line 42 def call if arguments.nil? cache.default = nil else cache.delete(cache.keygen(*arguments.args, **arguments.kwargs, &arguments.block)) end end |