Sha256: 17dd6256372a1464a2df830127931de0292c03a67e73f8a696f850e76283359d

Contents?: true

Size: 543 Bytes

Versions: 12

Compression:

Stored size: 543 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Common
    module Plugins
      module HasInternals
        module Concern
          include Support::Concern

          instance_methods do
            def internals
              @internals ||= self.class.internals_class.new
            end
          end

          class_methods do
            def internals_class
              @internals_class ||= Commands::CreateInternalsClass.call(entity_class: self)
            end
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
convenient_service-0.19.1 lib/convenient_service/common/plugins/has_internals/concern.rb
convenient_service-0.19.0 lib/convenient_service/common/plugins/has_internals/concern.rb
convenient_service-0.18.0 lib/convenient_service/common/plugins/has_internals/concern.rb
convenient_service-0.17.0 lib/convenient_service/common/plugins/has_internals/concern.rb
convenient_service-0.16.0 lib/convenient_service/common/plugins/has_internals/concern.rb
convenient_service-0.15.0 lib/convenient_service/common/plugins/has_internals/concern.rb
convenient_service-0.14.0 lib/convenient_service/common/plugins/has_internals/concern.rb
convenient_service-0.13.0 lib/convenient_service/common/plugins/has_internals/concern.rb
convenient_service-0.12.0 lib/convenient_service/common/plugins/has_internals/concern.rb
convenient_service-0.11.0 lib/convenient_service/common/plugins/has_internals/concern.rb
convenient_service-0.10.1 lib/convenient_service/common/plugins/has_internals/concern.rb
convenient_service-0.10.0 lib/convenient_service/common/plugins/has_internals/concern.rb