Class: Telnyx::Models::WhatsappContact::Phone

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

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

#initializePhone

Returns a new instance of Phone.

Parameters:

  • phone: (String)
  • type: (String)
  • wa_id: (String)


187
# File 'sig/telnyx/models/whatsapp_contact.rbs', line 187

def initialize: (?phone: String, ?type: String, ?wa_id: String) -> void

Instance Attribute Details

#phoneString?

Parameters:

  • (String)

Returns:

  • (String, nil)


139
# File 'lib/telnyx/models/whatsapp_contact.rb', line 139

optional :phone, String

#typeString?

Parameters:

  • (String)

Returns:

  • (String, nil)


144
# File 'lib/telnyx/models/whatsapp_contact.rb', line 144

optional :type, String

#wa_idString?

Parameters:

  • (String)

Returns:

  • (String, nil)


149
# File 'lib/telnyx/models/whatsapp_contact.rb', line 149

optional :wa_id, String

Instance Method Details

#to_hash{ phone: String, type: String, wa_id: String }

Returns:

  • ({ phone: String, type: String, wa_id: String })


189
# File 'sig/telnyx/models/whatsapp_contact.rbs', line 189

def to_hash: -> { phone: String, type: String, wa_id: String }