Class: OpenFeature::OFREP::Configuration
- Inherits:
-
Object
- Object
- OpenFeature::OFREP::Configuration
- Defined in:
- lib/openfeature/ofrep/provider/configuration.rb
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(base_url:, headers: {}, timeout: 10) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(base_url:, headers: {}, timeout: 10) ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 14 15 |
# File 'lib/openfeature/ofrep/provider/configuration.rb', line 10 def initialize(base_url:, headers: {}, timeout: 10) validate_base_url(base_url) @base_url = base_url @headers = headers @timeout = timeout end |
Instance Attribute Details
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
8 9 10 |
# File 'lib/openfeature/ofrep/provider/configuration.rb', line 8 def base_url @base_url end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
8 9 10 |
# File 'lib/openfeature/ofrep/provider/configuration.rb', line 8 def headers @headers end |
#timeout ⇒ Object (readonly)
Returns the value of attribute timeout.
8 9 10 |
# File 'lib/openfeature/ofrep/provider/configuration.rb', line 8 def timeout @timeout end |