class Google::Apis::PeopleV1::Address
A person's physical address. May be a P.O. box or street address. All fields are optional.
Attributes
The city of the address. Corresponds to the JSON property `city` @return [String]
The country of the address. Corresponds to the JSON property `country` @return [String]
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]
The extended address of the address; for example, the apartment number. Corresponds to the JSON property `extendedAddress` @return [String]
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]
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 about a field. Corresponds to the JSON property `metadata` @return [Google::Apis::PeopleV1::FieldMetadata]
The P.O. box of the address. Corresponds to the JSON property `poBox` @return [String]
The postal code of the address. Corresponds to the JSON property `postalCode` @return [String]
The region of the address; for example, the state or province. Corresponds to the JSON property `region` @return [String]
The street address. Corresponds to the JSON property `streetAddress` @return [String]
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
# File generated/google/apis/people_v1/classes.rb, line 748 def initialize(**args) update!(**args) end
Public Instance Methods
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