Class: Telnyx::Models::NetworkInterfaceRegion

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

#initialize(region_code: nil) ⇒ NetworkInterfaceRegion

Returns a new instance of NetworkInterfaceRegion.

Parameters:

  • region_code (String) (defaults to: nil)

    The region the interface should be deployed to.

  • region_code: (String) (defaults to: nil)


# File 'lib/telnyx/models/network_interface_region.rb', line 12

Instance Attribute Details

#region_codeString?

The region the interface should be deployed to.

Parameters:

  • (String)

Returns:

  • (String, nil)


10
# File 'lib/telnyx/models/network_interface_region.rb', line 10

optional :region_code, String

Instance Method Details

#to_hash{ region_code: String }

Returns:

  • ({ region_code: String })


12
# File 'sig/telnyx/models/network_interface_region.rbs', line 12

def to_hash: -> { region_code: String }