Class: OpenFeature::GoFeatureFlag::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/openfeature/go-feature-flag/options.rb

Overview

This class is the configuration class for the GoFeatureFlagProvider

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(endpoint: nil, headers: {}, exporter_metadata: {}, instrumentation: nil) ⇒ Options

Returns a new instance of Options.



11
12
13
14
15
16
17
18
# File 'lib/openfeature/go-feature-flag/options.rb', line 11

def initialize(endpoint: nil, headers: {}, exporter_metadata: {}, instrumentation: nil)
  validate_endpoint(endpoint: endpoint)
  validate_instrumentation(instrumentation: instrumentation)
  @endpoint = endpoint
  @custom_headers = headers
  @exporter_metadata = 
  @instrumentation = instrumentation
end

Instance Attribute Details

#custom_headersObject

Returns the value of attribute custom_headers.



9
10
11
# File 'lib/openfeature/go-feature-flag/options.rb', line 9

def custom_headers
  @custom_headers
end

#endpointObject

Returns the value of attribute endpoint.



9
10
11
# File 'lib/openfeature/go-feature-flag/options.rb', line 9

def endpoint
  @endpoint
end

#exporter_metadataObject

Returns the value of attribute exporter_metadata.



9
10
11
# File 'lib/openfeature/go-feature-flag/options.rb', line 9

def 
  @exporter_metadata
end

#instrumentationObject

Returns the value of attribute instrumentation.



9
10
11
# File 'lib/openfeature/go-feature-flag/options.rb', line 9

def instrumentation
  @instrumentation
end