Class: ConvenientService::Service::Plugins::CanHaveStubbedResults::Commands::GetServiceStubbedResult
- Inherits:
-
ConvenientService::Support::Command
- Object
- ConvenientService::Support::Command
- ConvenientService::Service::Plugins::CanHaveStubbedResults::Commands::GetServiceStubbedResult
- Defined in:
- lib/convenient_service/service/plugins/can_have_stubbed_results/commands/get_service_stubbed_result.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Instance Method Summary collapse
- #call ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result?
- #initialize(service:, arguments:) ⇒ void constructor
Methods inherited from ConvenientService::Support::Command
Constructor Details
#initialize(service:, arguments:) ⇒ void
26 27 28 29 |
# File 'lib/convenient_service/service/plugins/can_have_stubbed_results/commands/get_service_stubbed_result.rb', line 26 def initialize(service:, arguments:) @service = service @arguments = arguments end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
19 20 21 |
# File 'lib/convenient_service/service/plugins/can_have_stubbed_results/commands/get_service_stubbed_result.rb', line 19 def arguments @arguments end |
#service ⇒ Object (readonly)
Returns the value of attribute service.
13 14 15 |
# File 'lib/convenient_service/service/plugins/can_have_stubbed_results/commands/get_service_stubbed_result.rb', line 13 def service @service end |
Instance Method Details
#call ⇒ ConvenientService::Service::Plugins::HasJSendResult::Entities::Result?
34 35 36 |
# File 'lib/convenient_service/service/plugins/can_have_stubbed_results/commands/get_service_stubbed_result.rb', line 34 def call cache.read(key) end |