Class: LaunchDarkly::Impl::Model::VariationOrRollout Private
- Inherits:
-
Object
- Object
- LaunchDarkly::Impl::Model::VariationOrRollout
- 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
-
#rollout ⇒ Rollout|nil
readonly
private
Currently we do not have a model class for the rollout.
- #variation ⇒ Integer|nil readonly private
Instance Method Summary collapse
-
#initialize(variation, rollout_data, flag = nil, errors_out = nil, description = nil) ⇒ VariationOrRollout
constructor
private
A new instance of VariationOrRollout.
Constructor Details
#initialize(variation, rollout_data, flag = nil, errors_out = nil, description = nil) ⇒ VariationOrRollout
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 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)
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 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)
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.
206 207 208 |
# File 'lib/ldclient-rb/impl/model/feature_flag.rb', line 206 def variation @variation end |