Class: LaunchDarkly::Impl::Model::WeightedVariation
- Inherits:
-
Object
- Object
- LaunchDarkly::Impl::Model::WeightedVariation
- Defined in:
- lib/ldclient-rb/impl/model/feature_flag.rb
Overview
Instance Attribute Summary collapse
- #untracked ⇒ Boolean readonly
- #variation ⇒ Integer readonly
- #weight ⇒ Integer readonly
Instance Method Summary collapse
-
#initialize(data) ⇒ WeightedVariation
constructor
A new instance of WeightedVariation.
Constructor Details
#initialize(data) ⇒ WeightedVariation
Returns a new instance of WeightedVariation.
196 197 198 199 200 |
# File 'lib/ldclient-rb/impl/model/feature_flag.rb', line 196 def initialize(data) @variation = data[:variation] @weight = data[:weight] @untracked = !!data[:untracked] end |
Instance Attribute Details
#untracked ⇒ Boolean (readonly)
207 208 209 |
# File 'lib/ldclient-rb/impl/model/feature_flag.rb', line 207 def untracked @untracked end |
#variation ⇒ Integer (readonly)
203 204 205 |
# File 'lib/ldclient-rb/impl/model/feature_flag.rb', line 203 def variation @variation end |
#weight ⇒ Integer (readonly)
205 206 207 |
# File 'lib/ldclient-rb/impl/model/feature_flag.rb', line 205 def weight @weight end |