Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.21 KB

BooleanDefaults.md

File metadata and controls

28 lines (22 loc) · 1.21 KB

LaunchDarklyApi::BooleanDefaults

Properties

Name Type Description Notes
true_display_name String The display name for the true variation, displayed in the LaunchDarkly user interface [optional]
false_display_name String The display name for the false variation, displayed in the LaunchDarkly user interface [optional]
true_description String The description for the true variation [optional]
false_description String The description for the false variation [optional]
on_variation Integer The variation index of the flag variation to use for the default targeting behavior when a flag's targeting is on and the target did not match any rules [optional]
off_variation Integer The variation index of the flag variation to use for the default targeting behavior when a flag's targeting is off [optional]

Example

require 'launchdarkly_api'

instance = LaunchDarklyApi::BooleanDefaults.new(
  true_display_name: True,
  false_display_name: False,
  true_description: serve true,
  false_description: serve false,
  on_variation: 0,
  off_variation: 1
)