class Google::Apis::PeopleV1::Address

A person's physical address. May be a P.O. box or street address. All fields are optional.

Attributes

city[RW]

The city of the address. Corresponds to the JSON property `city` @return [String]

country[RW]

The country of the address. Corresponds to the JSON property `country` @return [String]

country_code[RW]

The [ISO 3166-1 alpha-2](www.iso.org/iso/country_codes.htm) country code of the address. Corresponds to the JSON property `countryCode` @return [String]

extended_address[RW]

The extended address of the address; for example, the apartment number. Corresponds to the JSON property `extendedAddress` @return [String]

formatted_type[RW]

The read-only type of the address translated and formatted in the viewer's account locale or the `Accept-Language` HTTP header locale. Corresponds to the JSON property `formattedType` @return [String]

formatted_value[RW]

The read-only value of the address formatted in the viewer's account locale or the `Accept-Language` HTTP header locale. Corresponds to the JSON property `formattedValue` @return [String]

metadata[RW]

Metadata about a field. Corresponds to the JSON property `metadata` @return [Google::Apis::PeopleV1::FieldMetadata]

po_box[RW]

The P.O. box of the address. Corresponds to the JSON property `poBox` @return [String]

postal_code[RW]

The postal code of the address. Corresponds to the JSON property `postalCode` @return [String]

region[RW]

The region of the address; for example, the state or province. Corresponds to the JSON property `region` @return [String]

street_address[RW]

The street address. Corresponds to the JSON property `streetAddress` @return [String]

type[RW]

The type of the address. The type can be custom or predefined. Possible values include, but are not limited to, the following: * `home` * `work` * `other` Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/people_v1/classes.rb, line 748
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/people_v1/classes.rb, line 753
def update!(**args)
  @metadata = args[:metadata] if args.key?(:metadata)
  @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
  @type = args[:type] if args.key?(:type)
  @formatted_type = args[:formatted_type] if args.key?(:formatted_type)
  @po_box = args[:po_box] if args.key?(:po_box)
  @street_address = args[:street_address] if args.key?(:street_address)
  @extended_address = args[:extended_address] if args.key?(:extended_address)
  @city = args[:city] if args.key?(:city)
  @region = args[:region] if args.key?(:region)
  @postal_code = args[:postal_code] if args.key?(:postal_code)
  @country = args[:country] if args.key?(:country)
  @country_code = args[:country_code] if args.key?(:country_code)
end