Class: Telnyx::Models::AI::FlowEdge::Condition::Expression
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::AI::FlowEdge::Condition::Expression
- Defined in:
- lib/telnyx/models/ai/flow_edge.rb,
sig/telnyx/models/ai/flow_edge.rbs
Instance Attribute Summary collapse
-
#expression ⇒ Object
Root of the expression AST; evaluates to a boolean.
- #type ⇒ Symbol, :expression
Instance Method Summary collapse
-
#initialize ⇒ Expression
constructor
A new instance of Expression.
- #to_hash ⇒ { expression: top, type: :expression }
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 ⇒ Expression
Returns a new instance of Expression.
62 |
# File 'sig/telnyx/models/ai/flow_edge.rbs', line 62
def initialize: (expression: top, ?type: :expression) -> void
|
Instance Attribute Details
#expression ⇒ Object
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.
117 |
# File 'lib/telnyx/models/ai/flow_edge.rb', line 117 required :expression, Telnyx::Internal::Type::Unknown |
#type ⇒ 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 }
64 |
# File 'sig/telnyx/models/ai/flow_edge.rbs', line 64
def to_hash: -> { expression: top, type: :expression }
|