Class: Flipt::VariantEvaluationResponse
- Inherits:
-
Object
- Object
- Flipt::VariantEvaluationResponse
- Defined in:
- lib/flipt_client/models.rb
Overview
VariantEvaluationResponse
Instance Attribute Summary collapse
-
#flag_key ⇒ String
readonly
The current value of flag_key.
-
#match ⇒ Boolean
readonly
The current value of match.
-
#reason ⇒ String
readonly
The current value of reason.
-
#segment_keys ⇒ Array<String>
readonly
The current value of segment_keys.
-
#variant_attachment ⇒ String?
readonly
The current value of variant_attachment.
-
#variant_key ⇒ String
readonly
The current value of variant_key.
Instance Method Summary collapse
-
#initialize(flag_key:, match:, reason:, variant_key:, variant_attachment: nil, segment_keys: []) ⇒ VariantEvaluationResponse
constructor
A new instance of VariantEvaluationResponse.
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 = @segment_keys = segment_keys end |
Instance Attribute Details
#flag_key ⇒ String (readonly)
Returns the current value of flag_key.
157 158 159 |
# File 'lib/flipt_client/models.rb', line 157 def flag_key @flag_key end |
#match ⇒ Boolean (readonly)
Returns the current value of match.
157 158 159 |
# File 'lib/flipt_client/models.rb', line 157 def match @match end |
#reason ⇒ String (readonly)
Returns the current value of reason.
157 158 159 |
# File 'lib/flipt_client/models.rb', line 157 def reason @reason end |
#segment_keys ⇒ Array<String> (readonly)
Returns the current value of segment_keys.
157 158 159 |
# File 'lib/flipt_client/models.rb', line 157 def segment_keys @segment_keys end |
#variant_attachment ⇒ String? (readonly)
Returns the current value of variant_attachment.
157 158 159 |
# File 'lib/flipt_client/models.rb', line 157 def @variant_attachment end |
#variant_key ⇒ String (readonly)
Returns the current value of variant_key.
157 158 159 |
# File 'lib/flipt_client/models.rb', line 157 def variant_key @variant_key end |