Class: IbmAppconfigurationRubySdk::EvaluationResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/ibm_appconfiguration_ruby_sdk/models/evaluation_result.rb

Overview

The result of evaluating a feature flag or remote property for a given entity.

Examples:

Feature flag

result = client.get_feature("my-flag").get_current_value("user-1", {})
puts result.value      # => true / false / String / Numeric
puts result.enabled    # => true / false  (feature flags only; nil for properties)
puts result.details.value_type  # => "ENABLED_VALUE"

Instance Attribute Summary collapse

Instance Attribute Details

#detailsEvaluationDetails (readonly)

Returns Metadata about how the value was resolved.

Returns:



53
# File 'lib/ibm_appconfiguration_ruby_sdk/models/evaluation_result.rb', line 53

EvaluationResult = Struct.new(:value, :enabled, :details, keyword_init: true)

#enabledBoolean? (readonly)

Returns Whether the feature flag is enabled (nil for properties).

Returns:

  • (Boolean, nil)

    Whether the feature flag is enabled (nil for properties)



53
# File 'lib/ibm_appconfiguration_ruby_sdk/models/evaluation_result.rb', line 53

EvaluationResult = Struct.new(:value, :enabled, :details, keyword_init: true)

#valueObject (readonly)

Returns The resolved value of the feature flag or property.

Returns:

  • (Object)

    The resolved value of the feature flag or property



53
# File 'lib/ibm_appconfiguration_ruby_sdk/models/evaluation_result.rb', line 53

EvaluationResult = Struct.new(:value, :enabled, :details, keyword_init: true)