Class: Telnyx::Models::AI::BooleanOpExpression
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::AI::BooleanOpExpression
- Defined in:
- lib/telnyx/models/ai/boolean_op_expression.rb,
sig/telnyx/models/ai/boolean_op_expression.rbs
Defined Under Namespace
Modules: Op
Instance Attribute Summary collapse
-
#op ⇒ Symbol, Telnyx::Models::AI::BooleanOpExpression::Op
Logical operator.
-
#operands ⇒ Array<Telnyx::Models::AI::Expression>
Operand sub-expressions.
- #type ⇒ Symbol, :bool_op
Instance Method Summary collapse
-
#initialize(op:, operands:, type: :bool_op) ⇒ Object
constructor
Some parameter documentations has been truncated, see BooleanOpExpression for more details.
- #to_hash ⇒ {
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(op:, operands:, type: :bool_op) ⇒ Object
Some parameter documentations has been truncated, see Telnyx::Models::AI::BooleanOpExpression for more details.
Combine sub-expressions with a logical operator (and / or / not).
and and or accept two or more operands; not accepts exactly one.
|
|
# File 'lib/telnyx/models/ai/boolean_op_expression.rb', line 25
|
Instance Attribute Details
#op ⇒ Symbol, Telnyx::Models::AI::BooleanOpExpression::Op
Logical operator. not is unary; and/or are n-ary (>=2).
11 |
# File 'lib/telnyx/models/ai/boolean_op_expression.rb', line 11 required :op, enum: -> { Telnyx::AI::BooleanOpExpression::Op } |
#operands ⇒ Array<Telnyx::Models::AI::Expression>
Operand sub-expressions. Length must be exactly 1 for not and >= 2 for
and/or.
18 |
# File 'lib/telnyx/models/ai/boolean_op_expression.rb', line 18 required :operands, -> { Telnyx::Internal::Type::ArrayOf[union: Telnyx::AI::Expression] } |
#type ⇒ Symbol, :bool_op
23 |
# File 'lib/telnyx/models/ai/boolean_op_expression.rb', line 23 required :type, const: :bool_op |
Instance Method Details
#to_hash ⇒ {
24 |
# File 'sig/telnyx/models/ai/boolean_op_expression.rbs', line 24
def to_hash: -> {
|