Class: Telnyx::Models::AI::Expression::NumberLiteral

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

#initializeNumberLiteral

Returns a new instance of NumberLiteral.

Parameters:

  • value: (Float)
  • type: (:number_literal)


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

def initialize: (value: Float, ?type: :number_literal) -> void

Instance Attribute Details

#typeSymbol, :number_literal

Parameters:

  • value (:number_literal)

Returns:

  • (Symbol, :number_literal)


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

required :type, const: :number_literal

#valueFloat

Literal numeric value.

Parameters:

  • value (Float)

Returns:

  • (Float)


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

required :value, Float

Instance Method Details

#to_hash{ type: :number_literal, value: Float }

Returns:

  • ({ type: :number_literal, value: Float })


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

def to_hash: -> { type: :number_literal, value: Float }