Class: Telnyx::Models::HostedNumber

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/hosted_number.rb

Defined Under Namespace

Modules: Status

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(id: nil, phone_number: nil, record_type: nil, status: nil) ⇒ Object

Parameters:

  • id (String) (defaults to: nil)

    Identifies the type of resource.

  • phone_number (String) (defaults to: nil)

    The messaging hosted phone number (+E.164 format)

  • record_type (String) (defaults to: nil)
  • status (Symbol, Telnyx::Models::HostedNumber::Status) (defaults to: nil)


# File 'lib/telnyx/models/hosted_number.rb', line 30

Instance Attribute Details

#phone_numberString?

The messaging hosted phone number (+E.164 format)

Returns:

  • (String, nil)


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

optional :phone_number, String

#record_typeString?

Returns:

  • (String, nil)


15
# File 'lib/telnyx/models/hosted_number.rb', line 15

optional :record_type, String

#statusSymbol, ...

Returns:



20
# File 'lib/telnyx/models/hosted_number.rb', line 20

optional :status, enum: -> { Telnyx::HostedNumber::Status }