Class: Datadog::OpenFeature::ResolutionDetails
- Inherits:
-
Struct
- Object
- Struct
- Datadog::OpenFeature::ResolutionDetails
- Defined in:
- lib/datadog/open_feature/resolution_details.rb
Overview
This class is based on the ‘OpenFeature::SDK::Provider::ResolutionDetails` class
See: github.com/open-feature/ruby-sdk/blob/v0.4.1/lib/open_feature/sdk/provider/resolution_details.rb
Instance Attribute Summary collapse
-
#allocation_key ⇒ Object
Returns the value of attribute allocation_key.
-
#error? ⇒ Object
Returns the value of attribute error?.
-
#error_code ⇒ Object
Returns the value of attribute error_code.
-
#error_message ⇒ Object
Returns the value of attribute error_message.
-
#extra_logging ⇒ Object
Returns the value of attribute extra_logging.
-
#flag_metadata ⇒ Object
Returns the value of attribute flag_metadata.
-
#log? ⇒ Object
Returns the value of attribute log?.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#value ⇒ Object
Returns the value of attribute value.
-
#variant ⇒ Object
Returns the value of attribute variant.
Class Method Summary collapse
Instance Attribute Details
#allocation_key ⇒ Object
Returns the value of attribute allocation_key
10 11 12 |
# File 'lib/datadog/open_feature/resolution_details.rb', line 10 def allocation_key @allocation_key end |
#error? ⇒ Object
Returns the value of attribute error?
10 11 12 |
# File 'lib/datadog/open_feature/resolution_details.rb', line 10
def error?
@error?
end
|
#error_code ⇒ Object
Returns the value of attribute error_code
10 11 12 |
# File 'lib/datadog/open_feature/resolution_details.rb', line 10 def error_code @error_code end |
#error_message ⇒ Object
Returns the value of attribute error_message
10 11 12 |
# File 'lib/datadog/open_feature/resolution_details.rb', line 10 def @error_message end |
#extra_logging ⇒ Object
Returns the value of attribute extra_logging
10 11 12 |
# File 'lib/datadog/open_feature/resolution_details.rb', line 10 def extra_logging @extra_logging end |
#flag_metadata ⇒ Object
Returns the value of attribute flag_metadata
10 11 12 |
# File 'lib/datadog/open_feature/resolution_details.rb', line 10 def @flag_metadata end |
#log? ⇒ Object
Returns the value of attribute log?
10 11 12 |
# File 'lib/datadog/open_feature/resolution_details.rb', line 10
def log?
@log?
end
|
#reason ⇒ Object
Returns the value of attribute reason
10 11 12 |
# File 'lib/datadog/open_feature/resolution_details.rb', line 10 def reason @reason end |
#value ⇒ Object
Returns the value of attribute value
10 11 12 |
# File 'lib/datadog/open_feature/resolution_details.rb', line 10 def value @value end |
#variant ⇒ Object
Returns the value of attribute variant
10 11 12 |
# File 'lib/datadog/open_feature/resolution_details.rb', line 10 def variant @variant end |
Class Method Details
.build_error(value:, error_code:, error_message:, reason: Ext::ERROR) ⇒ Object
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/datadog/open_feature/resolution_details.rb', line 23 def self.build_error(value:, error_code:, error_message:, reason: Ext::ERROR) new( value: value, error_code: error_code, error_message: , reason: reason, error?: true, log?: false ).freeze end |