Class: Telnyx::Models::AI::Expression::StringLiteral

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/ai/expression.rb,
sig/telnyx/models/ai/expression.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

#initializeStringLiteral

Returns a new instance of StringLiteral.

Parameters:

  • value: (String)
  • type: (:string_literal)


35
# File 'sig/telnyx/models/ai/expression.rbs', line 35

def initialize: (value: String, ?type: :string_literal) -> void

Instance Attribute Details

#typeSymbol, :string_literal

Parameters:

  • value (:string_literal)

Returns:

  • (Symbol, :string_literal)


77
# File 'lib/telnyx/models/ai/expression.rb', line 77

required :type, const: :string_literal

#valueString

Literal string value.

Parameters:

  • value (String)

Returns:

  • (String)


83
# File 'lib/telnyx/models/ai/expression.rb', line 83

required :value, String

Instance Method Details

#to_hash{ type: :string_literal, value: String }

Returns:

  • ({ type: :string_literal, value: String })


37
# File 'sig/telnyx/models/ai/expression.rbs', line 37

def to_hash: -> { type: :string_literal, value: String }