class Google::Apis::CivicinfoV2::SimpleAddressType

A simple representation of an address.

Attributes

city[RW]

The city or town for the address. Corresponds to the JSON property `city` @return [String]

line1[RW]

The street name and number of this address. Corresponds to the JSON property `line1` @return [String]

line2[RW]

The second line the address, if needed. Corresponds to the JSON property `line2` @return [String]

line3[RW]

The third line of the address, if needed. Corresponds to the JSON property `line3` @return [String]

location_name[RW]

The name of the location. Corresponds to the JSON property `locationName` @return [String]

state[RW]

The US two letter state abbreviation of the address. Corresponds to the JSON property `state` @return [String]

zip[RW]

The US Postal Zip Code of the address. Corresponds to the JSON property `zip` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

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