Class: Telnyx::Models::WireguardInterfaceRead::Region
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::WireguardInterfaceRead::Region
- Defined in:
- lib/telnyx/models/wireguard_interface_read.rb,
sig/telnyx/models/wireguard_interface_read.rbs
Overview
Instance Attribute Summary collapse
-
#code ⇒ String?
Region code of the interface.
-
#name ⇒ String?
Region name of the interface.
-
#record_type ⇒ String?
readonly
Returns the value of attribute record_type.
Instance Method Summary collapse
- #initialize(code: nil, name: nil, record_type: nil) ⇒ Object constructor
- #record_type ⇒ String readonly
- #to_hash ⇒ { code: String, name: String, record_type: String }
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(code: nil, name: nil, record_type: nil) ⇒ Object
|
|
# File 'lib/telnyx/models/wireguard_interface_read.rb', line 127
|
Instance Attribute Details
#code ⇒ String?
Region code of the interface.
111 |
# File 'lib/telnyx/models/wireguard_interface_read.rb', line 111 optional :code, String |
#name ⇒ String?
Region name of the interface.
117 |
# File 'lib/telnyx/models/wireguard_interface_read.rb', line 117 optional :name, String |
#record_type ⇒ String? (readonly)
Returns the value of attribute record_type.
113 114 115 |
# File 'sig/telnyx/models/wireguard_interface_read.rbs', line 113 def record_type @record_type end |
Instance Method Details
#record_type= ⇒ String (readonly)
115 |
# File 'sig/telnyx/models/wireguard_interface_read.rbs', line 115
def record_type=: (String) -> String
|
#to_hash ⇒ { code: String, name: String, record_type: String }
123 |
# File 'sig/telnyx/models/wireguard_interface_read.rbs', line 123
def to_hash: -> { code: String, name: String, record_type: String }
|