Class: LaunchDarkly::Impl::Model::VariationOrRollout

Inherits:
Object
  • Object
show all
Defined in:
lib/ldclient-rb/impl/model/feature_flag.rb

Overview

Since:

  • 5.5.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(variation, rollout_data, flag = nil, errors_out = nil, description = nil) ⇒ VariationOrRollout

Returns a new instance of VariationOrRollout.

Since:

  • 5.5.0



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

#rolloutRollout|nil (readonly)

Returns currently we do not have a model class for the rollout.

Returns:

  • (Rollout|nil)

    currently we do not have a model class for the rollout

Since:

  • 5.5.0



208
209
210
# File 'lib/ldclient-rb/impl/model/feature_flag.rb', line 208

def rollout
  @rollout
end

#variationInteger|nil (readonly)

Returns:

  • (Integer|nil)

Since:

  • 5.5.0



206
207
208
# File 'lib/ldclient-rb/impl/model/feature_flag.rb', line 206

def variation
  @variation
end