Class: Telnyx::Models::SessionAnalysisRetrieveResponse::Cost

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/session_analysis_retrieve_response.rb,
sig/telnyx/models/session_analysis_retrieve_response.rbs

Overview

See Also:

  • Telnyx::Models::SessionAnalysisRetrieveResponse#cost

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

#initializeCost

Returns a new instance of Cost.

Parameters:

  • currency: (String)
  • total: (String)


41
# File 'sig/telnyx/models/session_analysis_retrieve_response.rbs', line 41

def initialize: (currency: String, total: String) -> void

Instance Attribute Details

#currencyString

ISO 4217 currency code.

Parameters:

  • value (String)

Returns:

  • (String)


43
# File 'lib/telnyx/models/session_analysis_retrieve_response.rb', line 43

required :currency, String

#totalString

Total session cost as a decimal string.

Parameters:

  • value (String)

Returns:

  • (String)


49
# File 'lib/telnyx/models/session_analysis_retrieve_response.rb', line 49

required :total, String

Instance Method Details

#to_hash{ currency: String, total: String }

Returns:

  • ({ currency: String, total: String })


43
# File 'sig/telnyx/models/session_analysis_retrieve_response.rbs', line 43

def to_hash: -> { currency: String, total: String }