Class: Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::Address

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/message_send_whatsapp_response.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:



228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
# File 'lib/telnyx/models/message_send_whatsapp_response.rb', line 228

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)


232
# File 'lib/telnyx/models/message_send_whatsapp_response.rb', line 232

optional :city, String

#countryString?

Returns:

  • (String, nil)


237
# File 'lib/telnyx/models/message_send_whatsapp_response.rb', line 237

optional :country, String

#country_codeString?

Returns:

  • (String, nil)


242
# File 'lib/telnyx/models/message_send_whatsapp_response.rb', line 242

optional :country_code, String

#stateString?

Returns:

  • (String, nil)


247
# File 'lib/telnyx/models/message_send_whatsapp_response.rb', line 247

optional :state, String

#streetString?

Returns:

  • (String, nil)


252
# File 'lib/telnyx/models/message_send_whatsapp_response.rb', line 252

optional :street, String

#typeString?

Returns:

  • (String, nil)


257
# File 'lib/telnyx/models/message_send_whatsapp_response.rb', line 257

optional :type, String

#zipString?

Returns:

  • (String, nil)


262
# File 'lib/telnyx/models/message_send_whatsapp_response.rb', line 262

optional :zip, String