Class: Telnyx::Models::DocServiceDocument::Size
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::DocServiceDocument::Size
- Defined in:
- lib/telnyx/models/doc_service_document.rb,
sig/telnyx/models/doc_service_document.rbs
Instance Attribute Summary collapse
-
#amount ⇒ Integer?
readonly
Returns the value of attribute amount.
-
#unit ⇒ String?
readonly
Returns the value of attribute unit.
Instance Method Summary collapse
- #amount ⇒ Integer readonly
-
#initialize ⇒ Size
constructor
A new instance of Size.
- #to_hash ⇒ { amount: Integer, unit: String }
- #unit ⇒ String readonly
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 ⇒ Size
Returns a new instance of Size.
100 |
# File 'sig/telnyx/models/doc_service_document.rbs', line 100
def initialize: (?amount: Integer, ?unit: String) -> void
|
Instance Attribute Details
#amount ⇒ Integer? (readonly)
Returns the value of attribute amount.
92 93 94 |
# File 'sig/telnyx/models/doc_service_document.rbs', line 92 def amount @amount end |
#unit ⇒ String? (readonly)
Returns the value of attribute unit.
96 97 98 |
# File 'sig/telnyx/models/doc_service_document.rbs', line 96 def unit @unit end |
Instance Method Details
#amount= ⇒ Integer (readonly)
94 |
# File 'sig/telnyx/models/doc_service_document.rbs', line 94
def amount=: (Integer) -> Integer
|
#to_hash ⇒ { 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)
98 |
# File 'sig/telnyx/models/doc_service_document.rbs', line 98
def unit=: (String) -> String
|