Class: ConvenientService::Service::Plugins::HasJSendResult::Commands::CreateResultClass
- Inherits:
-
ConvenientService::Support::Command
- Object
- ConvenientService::Support::Command
- ConvenientService::Service::Plugins::HasJSendResult::Commands::CreateResultClass
- Defined in:
- lib/convenient_service/service/plugins/has_j_send_result/commands/create_result_class.rb
Instance Attribute Summary collapse
-
#service_class ⇒ Object
readonly
Returns the value of attribute service_class.
Instance Method Summary collapse
- #call ⇒ Class
- #initialize(service_class:) ⇒ void constructor
Methods included from ConvenientService::Support::Concern
Methods inherited from ConvenientService::Support::Command
Constructor Details
#initialize(service_class:) ⇒ void
26 27 28 |
# File 'lib/convenient_service/service/plugins/has_j_send_result/commands/create_result_class.rb', line 26 def initialize(service_class:) @service_class = service_class end |
Instance Attribute Details
#service_class ⇒ Object (readonly)
Returns the value of attribute service_class.
15 16 17 |
# File 'lib/convenient_service/service/plugins/has_j_send_result/commands/create_result_class.rb', line 15 def service_class @service_class end |
Instance Method Details
#call ⇒ Class
33 34 35 |
# File 'lib/convenient_service/service/plugins/has_j_send_result/commands/create_result_class.rb', line 33 def call commands.FindOrCreateEntity.call(namespace: service_class, proto_entity: Entities::Result) end |