Class: Trycourier::Models::UserProfile::Address

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/trycourier/models/user_profile.rb

Overview

See Also:

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(country:, formatted:, locality:, postal_code:, region:, street_address:) ⇒ Object

Parameters:

  • country (String)
  • formatted (String)
  • locality (String)
  • postal_code (String)
  • region (String)
  • street_address (String)


# File 'lib/trycourier/models/user_profile.rb', line 264

Instance Attribute Details

#countryString

Returns:

  • (String)


237
# File 'lib/trycourier/models/user_profile.rb', line 237

required :country, String

#formattedString

Returns:

  • (String)


242
# File 'lib/trycourier/models/user_profile.rb', line 242

required :formatted, String

#localityString

Returns:

  • (String)


247
# File 'lib/trycourier/models/user_profile.rb', line 247

required :locality, String

#postal_codeString

Returns:

  • (String)


252
# File 'lib/trycourier/models/user_profile.rb', line 252

required :postal_code, String

#regionString

Returns:

  • (String)


257
# File 'lib/trycourier/models/user_profile.rb', line 257

required :region, String

#street_addressString

Returns:

  • (String)


262
# File 'lib/trycourier/models/user_profile.rb', line 262

required :street_address, String