class Google::Apis::CivicinfoV2::SimpleAddressType
A simple representation of an address.
Attributes
The city or town for the address. Corresponds to the JSON property `city` @return [String]
The street name and number of this address. Corresponds to the JSON property `line1` @return [String]
The second line the address, if needed. Corresponds to the JSON property `line2` @return [String]
The third line of the address, if needed. Corresponds to the JSON property `line3` @return [String]
The name of the location. Corresponds to the JSON property `locationName` @return [String]
The US two letter state abbreviation of the address. Corresponds to the JSON property `state` @return [String]
The US Postal Zip Code of the address. Corresponds to the JSON property `zip` @return [String]
Public Class Methods
# File lib/google/apis/civicinfo_v2/classes.rb, line 1017 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/civicinfo_v2/classes.rb, line 1022 def update!(**args) @city = args[:city] if args.key?(:city) @line1 = args[:line1] if args.key?(:line1) @line2 = args[:line2] if args.key?(:line2) @line3 = args[:line3] if args.key?(:line3) @location_name = args[:location_name] if args.key?(:location_name) @state = args[:state] if args.key?(:state) @zip = args[:zip] if args.key?(:zip) end