Class: Telnyx::Models::GlobalIPAssignmentsUsageRetrieveResponse::Data::Transmitted

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

Overview

See Also:

  • Telnyx::Models::GlobalIPAssignmentsUsageRetrieveResponse::Data#transmitted

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(amount: nil, unit: nil) ⇒ Transmitted

Returns a new instance of Transmitted.

Parameters:

  • amount (Float) (defaults to: nil)

    The amount of data transmitted.

  • unit (String) (defaults to: nil)

    The unit of the amount of data transmitted.

  • amount: (Float) (defaults to: nil)
  • unit: (String) (defaults to: nil)


# File 'lib/telnyx/models/global_ip_assignments_usage_retrieve_response.rb', line 159

Instance Attribute Details

#amountFloat?

The amount of data transmitted.

Parameters:

  • (Float)

Returns:

  • (Float, nil)


151
# File 'lib/telnyx/models/global_ip_assignments_usage_retrieve_response.rb', line 151

optional :amount, Float

#unitString?

The unit of the amount of data transmitted.

Parameters:

  • (String)

Returns:

  • (String, nil)


157
# File 'lib/telnyx/models/global_ip_assignments_usage_retrieve_response.rb', line 157

optional :unit, String

Instance Method Details

#to_hash{ amount: Float, unit: String }

Returns:

  • ({ amount: Float, unit: String })


173
# File 'sig/telnyx/models/global_ip_assignments_usage_retrieve_response.rbs', line 173

def to_hash: -> { amount: Float, unit: String }