Sha256: c3839fe7144896bbfe24aef9caaa8aaa22f210e19c2e5ab878c3f92f0f52393b

Contents?: true

Size: 1 KB

Versions: 8

Compression:

Stored size: 1 KB

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module HasJSendResult
        module Commands
          class CreateResultClass < Support::Command
            include Support::DependencyContainer::Import

            ##
            # @!attribute [r] service_class
            #   @return Class
            #
            attr_reader :service_class

            ##
            # @return Class
            #
            import :"commands.FindOrCreateEntity", from: Common::Plugins::CanHaveUserProvidedEntity::Container

            ##
            # @param service_class [Class]
            # @return [void]
            #
            def initialize(service_class:)
              @service_class = service_class
            end

            ##
            # @return [Class]
            #
            def call
              commands.FindOrCreateEntity.call(namespace: service_class, proto_entity: Entities::Result)
            end
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
convenient_service-0.19.1 lib/convenient_service/service/plugins/has_j_send_result/commands/create_result_class.rb
convenient_service-0.19.0 lib/convenient_service/service/plugins/has_j_send_result/commands/create_result_class.rb
convenient_service-0.18.0 lib/convenient_service/service/plugins/has_j_send_result/commands/create_result_class.rb
convenient_service-0.17.0 lib/convenient_service/service/plugins/has_j_send_result/commands/create_result_class.rb
convenient_service-0.16.0 lib/convenient_service/service/plugins/has_j_send_result/commands/create_result_class.rb
convenient_service-0.15.0 lib/convenient_service/service/plugins/has_j_send_result/commands/create_result_class.rb
convenient_service-0.14.0 lib/convenient_service/service/plugins/has_j_send_result/commands/create_result_class.rb
convenient_service-0.13.0 lib/convenient_service/service/plugins/has_j_send_result/commands/create_result_class.rb