Class: Flipt::VariantEvaluationResponse

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

Overview

VariantEvaluationResponse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(flag_key:, match:, reason:, variant_key:, variant_attachment: nil, segment_keys: []) ⇒ VariantEvaluationResponse

Returns a new instance of VariantEvaluationResponse.



160
161
162
163
164
165
166
167
# File 'lib/flipt_client/models.rb', line 160

def initialize(flag_key:, match:, reason:, variant_key:, variant_attachment: nil, segment_keys: [])
  @flag_key = flag_key
  @match = match
  @reason = reason
  @variant_key = variant_key
  @variant_attachment = variant_attachment
  @segment_keys = segment_keys
end

Instance Attribute Details

#flag_keyString (readonly)

Returns the current value of flag_key.

Returns:

  • (String)

    the current value of flag_key



157
158
159
# File 'lib/flipt_client/models.rb', line 157

def flag_key
  @flag_key
end

#matchBoolean (readonly)

Returns the current value of match.

Returns:

  • (Boolean)

    the current value of match



157
158
159
# File 'lib/flipt_client/models.rb', line 157

def match
  @match
end

#reasonString (readonly)

Returns the current value of reason.

Returns:

  • (String)

    the current value of reason



157
158
159
# File 'lib/flipt_client/models.rb', line 157

def reason
  @reason
end

#segment_keysArray<String> (readonly)

Returns the current value of segment_keys.

Returns:

  • (Array<String>)

    the current value of segment_keys



157
158
159
# File 'lib/flipt_client/models.rb', line 157

def segment_keys
  @segment_keys
end

#variant_attachmentString? (readonly)

Returns the current value of variant_attachment.

Returns:

  • (String, nil)

    the current value of variant_attachment



157
158
159
# File 'lib/flipt_client/models.rb', line 157

def variant_attachment
  @variant_attachment
end

#variant_keyString (readonly)

Returns the current value of variant_key.

Returns:

  • (String)

    the current value of variant_key



157
158
159
# File 'lib/flipt_client/models.rb', line 157

def variant_key
  @variant_key
end