Class: OpenFeature::GoFeatureFlag::Options
- Inherits:
-
Object
- Object
- OpenFeature::GoFeatureFlag::Options
- Defined in:
- lib/openfeature/go-feature-flag/options.rb
Overview
This class is the configuration class for the GoFeatureFlagProvider
Instance Attribute Summary collapse
-
#custom_headers ⇒ Object
Returns the value of attribute custom_headers.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#exporter_metadata ⇒ Object
Returns the value of attribute exporter_metadata.
Instance Method Summary collapse
-
#initialize(endpoint: nil, headers: {}, exporter_metadata: {}) ⇒ Options
constructor
A new instance of Options.
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_headers ⇒ Object
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 |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
9 10 11 |
# File 'lib/openfeature/go-feature-flag/options.rb', line 9 def endpoint @endpoint end |
#exporter_metadata ⇒ Object
Returns the value of attribute exporter_metadata.
9 10 11 |
# File 'lib/openfeature/go-feature-flag/options.rb', line 9 def @exporter_metadata end |