Class: Telnyx::Models::ShortCode

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

Defined Under Namespace

Modules: RecordType

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(messaging_profile_id:, id: nil, country_code: nil, created_at: nil, record_type: nil, short_code: nil, tags: nil, updated_at: nil) ⇒ Object

Parameters:

  • messaging_profile_id (String, nil)

    Unique identifier for a messaging profile.

  • id (String) (defaults to: nil)

    Identifies the type of resource.

  • country_code (String) (defaults to: nil)

    ISO 3166-1 alpha-2 country code.

  • created_at (Time) (defaults to: nil)

    ISO 8601 formatted date indicating when the resource was created.

  • record_type (Symbol, Telnyx::Models::ShortCode::RecordType) (defaults to: nil)

    Identifies the type of the resource.

  • short_code (String) (defaults to: nil)

    Short digit sequence used to address messages.

  • tags (Array<String>) (defaults to: nil)
  • updated_at (Time) (defaults to: nil)

    ISO 8601 formatted date indicating when the resource was updated.



# File 'lib/telnyx/models/short_code.rb', line 55

Instance Attribute Details

#messaging_profile_idString?

Unique identifier for a messaging profile.

Returns:

  • (String, nil)


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

required :messaging_profile_id, String, nil?: true

#tagsArray<String>?

Returns:

  • (Array<String>, nil)


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

optional :tags, Telnyx::Internal::Type::ArrayOf[String]