class Google::Apis::ContentV2_1::AccountAddress

Attributes

country[RW]

CLDR country code (e.g. “US”). All MCA sub-accounts inherit the country of their parent MCA by default, however the country can be updated for individual sub-accounts. Corresponds to the JSON property `country` @return [String]

locality[RW]

City, town or commune. May also include dependent localities or sublocalities ( e.g. neighborhoods or suburbs). Corresponds to the JSON property `locality` @return [String]

postal_code[RW]

Postal code or ZIP (e.g. “94043”). Corresponds to the JSON property `postalCode` @return [String]

region[RW]

Top-level administrative subdivision of the country. For example, a state like California (“CA”) or a province like Quebec (“QC”). Corresponds to the JSON property `region` @return [String]

street_address[RW]

Street-level part of the address. Corresponds to the JSON property `streetAddress` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2_1/classes.rb, line 181
def update!(**args)
  @country = args[:country] if args.key?(:country)
  @locality = args[:locality] if args.key?(:locality)
  @postal_code = args[:postal_code] if args.key?(:postal_code)
  @region = args[:region] if args.key?(:region)
  @street_address = args[:street_address] if args.key?(:street_address)
end