Class: LaunchDarkly::Impl::Model::Prerequisite Private
- Inherits:
-
Object
- Object
- LaunchDarkly::Impl::Model::Prerequisite
- Defined in:
- lib/ldclient-rb/impl/model/feature_flag.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #data ⇒ Hash readonly private
- #failure_result ⇒ LaunchDarkly::EvaluationDetail readonly private
- #key ⇒ String readonly private
- #variation ⇒ Integer readonly private
Instance Method Summary collapse
-
#initialize(data, flag) ⇒ Prerequisite
constructor
private
A new instance of Prerequisite.
Constructor Details
#initialize(data, flag) ⇒ Prerequisite
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Prerequisite.
121 122 123 124 125 126 127 |
# File 'lib/ldclient-rb/impl/model/feature_flag.rb', line 121 def initialize(data, flag) @data = data @key = data[:key] @variation = data[:variation] @failure_result = EvaluatorHelpers.evaluation_detail_for_off_variation(flag, EvaluationReason::prerequisite_failed(@key)) end |
Instance Attribute Details
#data ⇒ Hash (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
130 131 132 |
# File 'lib/ldclient-rb/impl/model/feature_flag.rb', line 130 def data @data end |
#failure_result ⇒ LaunchDarkly::EvaluationDetail (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
136 137 138 |
# File 'lib/ldclient-rb/impl/model/feature_flag.rb', line 136 def failure_result @failure_result end |
#key ⇒ String (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
132 133 134 |
# File 'lib/ldclient-rb/impl/model/feature_flag.rb', line 132 def key @key end |
#variation ⇒ Integer (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
134 135 136 |
# File 'lib/ldclient-rb/impl/model/feature_flag.rb', line 134 def variation @variation end |