Class: Flipt::BooleanEvaluationResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/flipt_client/models.rb

Overview

BooleanEvaluationResponse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(flag_key:, enabled:, reason:, segment_keys: []) ⇒ BooleanEvaluationResponse

Returns a new instance of BooleanEvaluationResponse.



178
179
180
181
182
183
# File 'lib/flipt_client/models.rb', line 178

def initialize(flag_key:, enabled:, reason:, segment_keys: [])
  @flag_key = flag_key
  @enabled = enabled
  @reason = reason
  @segment_keys = segment_keys
end

Instance Attribute Details

#enabledBoolean (readonly)

Returns the current value of enabled.

Returns:

  • (Boolean)

    the current value of enabled



175
176
177
# File 'lib/flipt_client/models.rb', line 175

def enabled
  @enabled
end

#flag_keyString (readonly)

Returns the current value of flag_key.

Returns:

  • (String)

    the current value of flag_key



175
176
177
# File 'lib/flipt_client/models.rb', line 175

def flag_key
  @flag_key
end

#reasonString (readonly)

Returns the current value of reason.

Returns:

  • (String)

    the current value of reason



175
176
177
# File 'lib/flipt_client/models.rb', line 175

def reason
  @reason
end

#segment_keysArray<String> (readonly)

Returns the current value of segment_keys.

Returns:

  • (Array<String>)

    the current value of segment_keys



175
176
177
# File 'lib/flipt_client/models.rb', line 175

def segment_keys
  @segment_keys
end