Class: Telnyx::Models::UnsubscribeGroup

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/unsubscribe_group.rb,
sig/telnyx/models/unsubscribe_group.rbs

Overview

See Also:

  • Telnyx::Resources::EmailUnsubscribeGroups#list

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(id:, created_at:, description:, name:, record_type:, updated_at:) ⇒ Object

Parameters:

  • id (String)
  • created_at (Time)
  • description (String, nil)

    Always present (not omit-nullable); null when unset.

  • name (String)
  • record_type (Symbol, Telnyx::Models::UnsubscribeGroup::RecordType)

    View-only.

  • updated_at (Time)


# File 'lib/telnyx/models/unsubscribe_group.rb', line 39

Instance Attribute Details

#created_atTime

Parameters:

  • value (Time)

Returns:

  • (Time)


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

required :created_at, Time

#descriptionString?

Always present (not omit-nullable); null when unset.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


21
# File 'lib/telnyx/models/unsubscribe_group.rb', line 21

required :description, String, nil?: true

#idString

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#nameString

Parameters:

  • value (String)

Returns:

  • (String)


26
# File 'lib/telnyx/models/unsubscribe_group.rb', line 26

required :name, String

#record_typeSymbol, Telnyx::Models::UnsubscribeGroup::RecordType

View-only.

Parameters:

  • value (Telnyx::Models::UnsubscribeGroup::record_type)

Returns:



32
# File 'lib/telnyx/models/unsubscribe_group.rb', line 32

required :record_type, enum: -> { Telnyx::UnsubscribeGroup::RecordType }

#updated_atTime

Parameters:

  • value (Time)

Returns:

  • (Time)


37
# File 'lib/telnyx/models/unsubscribe_group.rb', line 37

required :updated_at, Time

Instance Method Details

#to_hash{

Returns:

  • ({)


35
# File 'sig/telnyx/models/unsubscribe_group.rbs', line 35

def to_hash: -> {