Class: LaunchDarkly::Impl::Model::VariationOrRollout
- Inherits:
-
Object
- Object
- LaunchDarkly::Impl::Model::VariationOrRollout
- Defined in:
- lib/ldclient-rb/impl/model/feature_flag.rb
Overview
Instance Attribute Summary collapse
-
#rollout ⇒ Rollout|nil
readonly
Currently we do not have a model class for the rollout.
- #variation ⇒ Integer|nil readonly
Instance Method Summary collapse
-
#initialize(variation, rollout_data, flag = nil, errors_out = nil, description = nil) ⇒ VariationOrRollout
constructor
A new instance of VariationOrRollout.
Constructor Details
#initialize(variation, rollout_data, flag = nil, errors_out = nil, description = nil) ⇒ VariationOrRollout
Returns a new instance of VariationOrRollout.
199 200 201 202 203 |
# File 'lib/ldclient-rb/impl/model/feature_flag.rb', line 199 def initialize(variation, rollout_data, flag = nil, errors_out = nil, description = nil) @variation = variation check_variation_range(flag, errors_out, variation, description) @rollout = rollout_data.nil? ? nil : Rollout.new(rollout_data, flag, errors_out, description) end |
Instance Attribute Details
#rollout ⇒ Rollout|nil (readonly)
Returns currently we do not have a model class for the rollout.
208 209 210 |
# File 'lib/ldclient-rb/impl/model/feature_flag.rb', line 208 def rollout @rollout end |
#variation ⇒ Integer|nil (readonly)
206 207 208 |
# File 'lib/ldclient-rb/impl/model/feature_flag.rb', line 206 def variation @variation end |