Sha256: a96d8da23d6ebd513defe8f694017766d0913fd0c91e5a75134ca2ee510f0280

Contents?: true

Size: 800 Bytes

Versions: 8

Compression:

Stored size: 800 Bytes

Contents

# frozen_string_literal: true

# @api private
# @since 0.1.0
class SmartCore::Container::Entities::NamespaceBuilder
  class << self
    # @param namespace_name [String]
    # @return [SmartCore::Container::Entities::Namespace]
    #
    # @api private
    # @since 0.1.0
    def build(namespace_name)
      new(namespace_name).build
    end
  end

  # @param namespace_name [String]
  # @return [void]
  #
  # @api private
  # @since 0.1.0
  def initialize(namespace_name)
    @namespace_name = namespace_name
  end

  # @return [SmartCore::Container::Entities::Namespace]
  #
  # @api private
  # @since 0.1.0
  def build
    SmartCore::Container::Entities::Namespace.new(namespace_name)
  end

  private

  # @return [String]
  #
  # @api private
  # @since 0.1.0
  attr_reader :namespace_name
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
smart_container-0.8.0 lib/smart_core/container/entities/namespace_builder.rb
smart_container-0.7.0 lib/smart_core/container/entities/namespace_builder.rb
smart_container-0.6.0 lib/smart_core/container/entities/namespace_builder.rb
smart_container-0.5.0 lib/smart_core/container/entities/namespace_builder.rb
smart_container-0.4.0 lib/smart_core/container/entities/namespace_builder.rb
smart_container-0.3.0 lib/smart_core/container/entities/namespace_builder.rb
smart_container-0.2.0 lib/smart_core/container/entities/namespace_builder.rb
smart_container-0.1.0 lib/smart_core/container/entities/namespace_builder.rb