Class: Telnyx::Models::Legacy::Reporting::UsageReports::TelcoDataAggregation

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

#initialize(currency: nil, total_cost: nil, total_dips: nil, type: nil) ⇒ Object

Parameters:

  • currency (String) (defaults to: nil)

    Currency code

  • total_cost (Float) (defaults to: nil)

    Total cost for this aggregation

  • total_dips (Integer) (defaults to: nil)

    Total number of lookups performed

  • type (String) (defaults to: nil)

    Type of telco data lookup



# File 'lib/telnyx/models/legacy/reporting/usage_reports/telco_data_aggregation.rb', line 33

Instance Attribute Details

#currencyString?

Currency code

Parameters:

  • (String)

Returns:

  • (String, nil)


13
# File 'lib/telnyx/models/legacy/reporting/usage_reports/telco_data_aggregation.rb', line 13

optional :currency, String

#total_costFloat?

Total cost for this aggregation

Parameters:

  • (Float)

Returns:

  • (Float, nil)


19
# File 'lib/telnyx/models/legacy/reporting/usage_reports/telco_data_aggregation.rb', line 19

optional :total_cost, Float

#total_dipsInteger?

Total number of lookups performed

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


25
# File 'lib/telnyx/models/legacy/reporting/usage_reports/telco_data_aggregation.rb', line 25

optional :total_dips, Integer

#typeString?

Type of telco data lookup

Parameters:

  • (String)

Returns:

  • (String, nil)


31
# File 'lib/telnyx/models/legacy/reporting/usage_reports/telco_data_aggregation.rb', line 31

optional :type, String

Instance Method Details

#to_hash{

Returns:

  • ({)


38
# File 'sig/telnyx/models/legacy/reporting/usage_reports/telco_data_aggregation.rbs', line 38

def to_hash: -> {