Class: Telnyx::Models::AI::FlowEdge::Condition::Expression

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/ai/flow_edge.rb,
sig/telnyx/models/ai/flow_edge.rbs

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

#initializeExpression

Returns a new instance of Expression.

Parameters:

  • expression: (top)
  • type: (:expression)


62
# File 'sig/telnyx/models/ai/flow_edge.rbs', line 62

def initialize: (expression: top, ?type: :expression) -> void

Instance Attribute Details

#expressionObject

Root of the expression AST; evaluates to a boolean. Typed as free-form JSON to avoid an uncompilable by-value self-reference; see the Expression schema for the variant structure.

Parameters:

  • value (top)

Returns:

  • (Object)


117
# File 'lib/telnyx/models/ai/flow_edge.rb', line 117

required :expression, Telnyx::Internal::Type::Unknown

#typeSymbol, :expression

Parameters:

  • value (:expression)

Returns:

  • (Symbol, :expression)


122
# File 'lib/telnyx/models/ai/flow_edge.rb', line 122

required :type, const: :expression

Instance Method Details

#to_hash{ expression: top, type: :expression }

Returns:

  • ({ expression: top, type: :expression })


64
# File 'sig/telnyx/models/ai/flow_edge.rbs', line 64

def to_hash: -> { expression: top, type: :expression }