Class: Telnyx::Models::Network

Inherits:
Record show all
Defined in:
lib/telnyx/models/network.rb,
sig/telnyx/models/network.rbs

Overview

See Also:

  • Telnyx::Resources::Networks#list

Direct Known Subclasses

NetworkCreate

Instance Attribute Summary collapse

Attributes inherited from Record

#created_at, #id, #record_type, #updated_at

Instance Method Summary collapse

Methods inherited from Record

#created_at=, #id=, #record_type=, #updated_at=

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(name: nil) ⇒ Network

Returns a new instance of Network.

Parameters:

  • name (String) (defaults to: nil)

    A user specified name for the network.

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


# File 'lib/telnyx/models/network.rb', line 13

Instance Attribute Details

#nameString?

A user specified name for the network.

Parameters:

  • _ (String)

Returns:

  • (String, nil)


11
# File 'lib/telnyx/models/network.rb', line 11

optional :name, String

Instance Method Details

#to_hash{ name: String }

Returns:

  • ({ name: String })


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

def to_hash: -> { name: String }