Class: Telnyx::Models::SimpleSimCard::CurrentBillingPeriodConsumedData

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

Overview

See Also:

  • Telnyx::Models::SimpleSimCard#current_billing_period_consumed_data

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

#initializeCurrentBillingPeriodConsumedData

Returns a new instance of CurrentBillingPeriodConsumedData.

Parameters:

  • amount: (String)
  • unit: (String)


168
# File 'sig/telnyx/models/simple_sim_card.rbs', line 168

def initialize: (?amount: String, ?unit: String) -> void

Instance Attribute Details

#amountString?

Parameters:

  • (String)

Returns:

  • (String, nil)


194
# File 'lib/telnyx/models/simple_sim_card.rb', line 194

optional :amount, String

#unitString?

Parameters:

  • (String)

Returns:

  • (String, nil)


199
# File 'lib/telnyx/models/simple_sim_card.rb', line 199

optional :unit, String

Instance Method Details

#to_hash{ amount: String, unit: String }

Returns:

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


170
# File 'sig/telnyx/models/simple_sim_card.rbs', line 170

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