Class: Telnyx::Models::DocServiceDocument::Size

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

#initializeSize

Returns a new instance of Size.

Parameters:

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


100
# File 'sig/telnyx/models/doc_service_document.rbs', line 100

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

Instance Attribute Details

#amountInteger? (readonly)

Returns the value of attribute amount.

Returns:

  • (Integer, nil)


92
93
94
# File 'sig/telnyx/models/doc_service_document.rbs', line 92

def amount
  @amount
end

#unitString? (readonly)

Returns the value of attribute unit.

Returns:

  • (String, nil)


96
97
98
# File 'sig/telnyx/models/doc_service_document.rbs', line 96

def unit
  @unit
end

Instance Method Details

#amount=Integer (readonly)

Parameters:

  • (Integer)

Returns:

  • (Integer)


94
# File 'sig/telnyx/models/doc_service_document.rbs', line 94

def amount=: (Integer) -> Integer

#to_hash{ amount: Integer, unit: String }

Returns:

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


102
# File 'sig/telnyx/models/doc_service_document.rbs', line 102

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

#unit=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


98
# File 'sig/telnyx/models/doc_service_document.rbs', line 98

def unit=: (String) -> String