Class: Telnyx::Models::WhatsappContact::Address

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

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(addresses: nil, birthday: nil, emails: nil, name: nil, org: nil, phones: nil, urls: nil) ⇒ Object

Parameters:



50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/telnyx/models/whatsapp_contact.rb', line 50

class Address < Telnyx::Internal::Type::BaseModel
  # @!attribute city
  #
  #   @return [String, nil]
  optional :city, String

  # @!attribute country
  #
  #   @return [String, nil]
  optional :country, String

  # @!attribute country_code
  #
  #   @return [String, nil]
  optional :country_code, String

  # @!attribute state
  #
  #   @return [String, nil]
  optional :state, String

  # @!attribute street
  #
  #   @return [String, nil]
  optional :street, String

  # @!attribute type
  #
  #   @return [String, nil]
  optional :type, String

  # @!attribute zip
  #
  #   @return [String, nil]
  optional :zip, String

  # @!method initialize(city: nil, country: nil, country_code: nil, state: nil, street: nil, type: nil, zip: nil)
  #   @param city [String]
  #   @param country [String]
  #   @param country_code [String]
  #   @param state [String]
  #   @param street [String]
  #   @param type [String]
  #   @param zip [String]
end

Instance Attribute Details

#cityString?

Returns:

  • (String, nil)


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

optional :city, String

#countryString?

Returns:

  • (String, nil)


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

optional :country, String

#country_codeString?

Returns:

  • (String, nil)


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

optional :country_code, String

#stateString?

Returns:

  • (String, nil)


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

optional :state, String

#streetString?

Returns:

  • (String, nil)


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

optional :street, String

#typeString?

Returns:

  • (String, nil)


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

optional :type, String

#zipString?

Returns:

  • (String, nil)


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

optional :zip, String