Sha256: b5aa32eb724276a02bc33dcdde6831d17bd1b8b642253ff021cc156224ac956a

Contents?: true

Size: 621 Bytes

Versions: 1

Compression:

Stored size: 621 Bytes

Contents

# frozen_string_literal: true

require "concurrent"

require_relative "api"

module OpenFeature
  module SDK
    # Represents the configuration object for the global API where <tt>Provider</tt>, <tt>Hook</tt>,
    # and <tt>Context</tt> are configured.
    # This class is not meant to be interacted with directly but instead through the <tt>OpenFeature::SDK.configure</tt>
    # method
    class Configuration
      extend Forwardable

      attr_accessor :context, :provider, :hooks

      def_delegator :@provider, :metadata

      def initialize
        @hooks = Concurrent::Array.new([])
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openfeature-sdk-0.1.0 lib/openfeature/sdk/configuration.rb