Class: Telnyx::Models::WhatsappContact::Email

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

#initializeEmail

Returns a new instance of Email.

Parameters:

  • email: (String)
  • type: (String)


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

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

Instance Attribute Details

#emailString?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :email, String

#typeString?

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :type, String

Instance Method Details

#to_hash{ email: String, type: String }

Returns:

  • ({ email: String, type: String })


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

def to_hash: -> { email: String, type: String }