Class: LaunchDarkly::Impl::Model::Prerequisite
- Inherits:
-
Object
- Object
- LaunchDarkly::Impl::Model::Prerequisite
- Defined in:
- lib/ldclient-rb/impl/model/feature_flag.rb
Overview
Instance Attribute Summary collapse
- #data ⇒ Hash readonly
- #failure_result ⇒ LaunchDarkly::EvaluationDetail readonly
- #key ⇒ String readonly
- #variation ⇒ Integer readonly
Instance Method Summary collapse
-
#initialize(data, flag, logger) ⇒ Prerequisite
constructor
A new instance of Prerequisite.
Constructor Details
#initialize(data, flag, logger) ⇒ Prerequisite
Returns a new instance of Prerequisite.
96 97 98 99 100 101 102 |
# File 'lib/ldclient-rb/impl/model/feature_flag.rb', line 96 def initialize(data, flag, logger) @data = data @key = data[:key] @variation = data[:variation] @failure_result = EvaluatorHelpers.evaluation_detail_for_off_variation(flag, EvaluationReason::prerequisite_failed(@key), logger) end |
Instance Attribute Details
#data ⇒ Hash (readonly)
105 106 107 |
# File 'lib/ldclient-rb/impl/model/feature_flag.rb', line 105 def data @data end |
#failure_result ⇒ LaunchDarkly::EvaluationDetail (readonly)
111 112 113 |
# File 'lib/ldclient-rb/impl/model/feature_flag.rb', line 111 def failure_result @failure_result end |
#key ⇒ String (readonly)
107 108 109 |
# File 'lib/ldclient-rb/impl/model/feature_flag.rb', line 107 def key @key end |
#variation ⇒ Integer (readonly)
109 110 111 |
# File 'lib/ldclient-rb/impl/model/feature_flag.rb', line 109 def variation @variation end |