Class: Knockapi::Models::Condition
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Knockapi::Models::Condition
- Defined in:
- lib/knockapi/models/condition.rb
Defined Under Namespace
Modules: Operator
Instance Attribute Summary collapse
-
#argument ⇒ String?
The argument value to compare against in the condition.
-
#operator ⇒ Symbol, Knockapi::Models::Condition::Operator
The operator to use in the condition evaluation.
-
#variable ⇒ String
The variable to be evaluated in the condition.
Instance Method Summary collapse
-
#initialize(argument:, operator:, variable:) ⇒ Object
constructor
A condition to be evaluated.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(argument:, operator:, variable:) ⇒ Object
A condition to be evaluated.
|
|
# File 'lib/knockapi/models/condition.rb', line 24
|
Instance Attribute Details
#argument ⇒ String?
The argument value to compare against in the condition.
10 |
# File 'lib/knockapi/models/condition.rb', line 10 required :argument, String, nil?: true |
#operator ⇒ Symbol, Knockapi::Models::Condition::Operator
The operator to use in the condition evaluation.
16 |
# File 'lib/knockapi/models/condition.rb', line 16 required :operator, enum: -> { Knockapi::Condition::Operator } |
#variable ⇒ String
The variable to be evaluated in the condition.
22 |
# File 'lib/knockapi/models/condition.rb', line 22 required :variable, String |