Class: Telnyx::Models::SimCardDataUsageNotificationCreateParams::Threshold

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/sim_card_data_usage_notification_create_params.rb

Defined Under Namespace

Modules: Unit

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) ⇒ Object

Data usage threshold that will trigger the notification.

Parameters:



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/telnyx/models/sim_card_data_usage_notification_create_params.rb', line 29

class Threshold < Telnyx::Internal::Type::BaseModel
  # @!attribute amount
  #
  #   @return [String, nil]
  optional :amount, String

  # @!attribute unit
  #
  #   @return [Symbol, Telnyx::Models::SimCardDataUsageNotificationCreateParams::Threshold::Unit, nil]
  optional :unit, enum: -> { Telnyx::SimCardDataUsageNotificationCreateParams::Threshold::Unit }

  # @!method initialize(amount: nil, unit: nil)
  #   Data usage threshold that will trigger the notification.
  #
  #   @param amount [String]
  #   @param unit [Symbol, Telnyx::Models::SimCardDataUsageNotificationCreateParams::Threshold::Unit]

  # @see Telnyx::Models::SimCardDataUsageNotificationCreateParams::Threshold#unit
  module Unit
    extend Telnyx::Internal::Type::Enum

    MB = :MB
    GB = :GB

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#amountString?

Returns:

  • (String, nil)


33
# File 'lib/telnyx/models/sim_card_data_usage_notification_create_params.rb', line 33

optional :amount, String

#unitSymbol, ...



38
# File 'lib/telnyx/models/sim_card_data_usage_notification_create_params.rb', line 38

optional :unit, enum: -> { Telnyx::SimCardDataUsageNotificationCreateParams::Threshold::Unit }