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: {}) ⇒ Options

Returns a new instance of Options.



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

def initialize(endpoint: nil, headers: {}, exporter_metadata: {})
  validate_endpoint(endpoint: endpoint)
  @endpoint = endpoint
  @custom_headers = headers
  @exporter_metadata = 
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