Class: Telnyx::Models::RegionOut::Region
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::RegionOut::Region
- Defined in:
- lib/telnyx/models/region_out.rb,
sig/telnyx/models/region_out.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/region_out.rb', line 44
|
Instance Attribute Details
#code ⇒ String?
Region code of the interface.
28 |
# File 'lib/telnyx/models/region_out.rb', line 28 optional :code, String |
#name ⇒ String?
Region name of the interface.
34 |
# File 'lib/telnyx/models/region_out.rb', line 34 optional :name, String |
#record_type ⇒ String? (readonly)
Returns the value of attribute record_type.
32 33 34 |
# File 'sig/telnyx/models/region_out.rbs', line 32 def record_type @record_type end |
Instance Method Details
#record_type= ⇒ String (readonly)
34 |
# File 'sig/telnyx/models/region_out.rbs', line 34
def record_type=: (String) -> String
|
#to_hash ⇒ { code: String, name: String, record_type: String }
42 |
# File 'sig/telnyx/models/region_out.rbs', line 42
def to_hash: -> { code: String, name: String, record_type: String }
|