Class: Telnyx::Models::AI::Expression::BoolLiteral
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::AI::Expression::BoolLiteral
- Defined in:
- lib/telnyx/models/ai/expression.rb,
sig/telnyx/models/ai/expression.rbs
Instance Attribute Summary collapse
- #type ⇒ Symbol, :bool_literal
-
#value ⇒ Boolean
Literal boolean value.
Instance Method Summary collapse
-
#initialize(value:, type: :bool_literal) ⇒ BoolLiteral
constructor
Constant boolean value.
- #to_hash ⇒ { type: :bool_literal, value: bool }
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(value:, type: :bool_literal) ⇒ BoolLiteral
Constant boolean value. Useful for unconditional ('always') edges.
|
|
# File 'lib/telnyx/models/ai/expression.rb', line 125
|
Instance Attribute Details
#type ⇒ Symbol, :bool_literal
117 |
# File 'lib/telnyx/models/ai/expression.rb', line 117 required :type, const: :bool_literal |
#value ⇒ Boolean
Literal boolean value.
123 |
# File 'lib/telnyx/models/ai/expression.rb', line 123 required :value, Telnyx::Internal::Type::Boolean |
Instance Method Details
#to_hash ⇒ { type: :bool_literal, value: bool }
61 |
# File 'sig/telnyx/models/ai/expression.rbs', line 61
def to_hash: -> { type: :bool_literal, value: bool }
|