Class: Telnyx::Models::AI::BooleanOpExpression

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/ai/boolean_op_expression.rb

Defined Under Namespace

Modules: Op

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:



# File 'lib/telnyx/models/ai/boolean_op_expression.rb', line 25

Instance Attribute Details

#opSymbol, 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 }

#operandsArray<Telnyx::Models::AI::Expression>

Operand sub-expressions. Length must be exactly 1 for ‘not` and >= 2 for `and`/`or`.

Returns:



18
# File 'lib/telnyx/models/ai/boolean_op_expression.rb', line 18

required :operands, -> { Telnyx::Internal::Type::ArrayOf[union: Telnyx::AI::Expression] }

#typeSymbol, :bool_op

Returns:

  • (Symbol, :bool_op)


23
# File 'lib/telnyx/models/ai/boolean_op_expression.rb', line 23

required :type, const: :bool_op