Class: Telnyx::Models::WhatsappContact
Defined Under Namespace
Classes: Address, Email, Org, Phone, URL
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(phone: nil, type: nil, wa_id: nil) ⇒ Object
|
# File 'lib/telnyx/models/whatsapp_contact.rb', line 86
|
Instance Attribute Details
9
|
# File 'lib/telnyx/models/whatsapp_contact.rb', line 9
optional :addresses, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::WhatsappContact::Address] }
|
#birthday ⇒ String?
14
|
# File 'lib/telnyx/models/whatsapp_contact.rb', line 14
optional :birthday, String
|
19
|
# File 'lib/telnyx/models/whatsapp_contact.rb', line 19
optional :emails, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::WhatsappContact::Email] }
|
#name ⇒ String?
24
|
# File 'lib/telnyx/models/whatsapp_contact.rb', line 24
optional :name, String
|
29
|
# File 'lib/telnyx/models/whatsapp_contact.rb', line 29
optional :org, -> { Telnyx::WhatsappContact::Org }
|
34
|
# File 'lib/telnyx/models/whatsapp_contact.rb', line 34
optional :phones, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::WhatsappContact::Phone] }
|
39
|
# File 'lib/telnyx/models/whatsapp_contact.rb', line 39
optional :urls, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::WhatsappContact::URL] }
|
Instance Method Details
#to_hash ⇒ {
61
|
# File 'sig/telnyx/models/whatsapp_contact.rbs', line 61
def to_hash: -> {
|