Class: Telnyx::Models::AI::Expression::StringLiteral
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::AI::Expression::StringLiteral
- Defined in:
- lib/telnyx/models/ai/expression.rb,
sig/telnyx/models/ai/expression.rbs
Instance Attribute Summary collapse
- #type ⇒ Symbol, :string_literal
-
#value ⇒ String
Literal string value.
Instance Method Summary collapse
-
#initialize ⇒ StringLiteral
constructor
A new instance of StringLiteral.
- #to_hash ⇒ { type: :string_literal, value: String }
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 ⇒ StringLiteral
Returns a new instance of StringLiteral.
35 |
# File 'sig/telnyx/models/ai/expression.rbs', line 35
def initialize: (value: String, ?type: :string_literal) -> void
|
Instance Attribute Details
#type ⇒ Symbol, :string_literal
77 |
# File 'lib/telnyx/models/ai/expression.rb', line 77 required :type, const: :string_literal |
#value ⇒ String
Literal string value.
83 |
# File 'lib/telnyx/models/ai/expression.rb', line 83 required :value, String |
Instance Method Details
#to_hash ⇒ { type: :string_literal, value: String }
37 |
# File 'sig/telnyx/models/ai/expression.rbs', line 37
def to_hash: -> { type: :string_literal, value: String }
|