Class: Google::Apis::ContentV2_1::AccountAddress

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AccountAddress

Returns a new instance of AccountAddress.



162
163
164
# File 'generated/google/apis/content_v2_1/classes.rb', line 162

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#countryString

CLDR country code (e.g. "US"). This value cannot be set for a sub-account of an MCA. All MCA sub-accounts inherit the country of their parent MCA. Corresponds to the JSON property country

Returns:

  • (String)


138
139
140
# File 'generated/google/apis/content_v2_1/classes.rb', line 138

def country
  @country
end

#localityString

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

Returns:

  • (String)


144
145
146
# File 'generated/google/apis/content_v2_1/classes.rb', line 144

def locality
  @locality
end

#postal_codeString

Postal code or ZIP (e.g. "94043"). Corresponds to the JSON property postalCode

Returns:

  • (String)


149
150
151
# File 'generated/google/apis/content_v2_1/classes.rb', line 149

def postal_code
  @postal_code
end

#regionString

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

Returns:

  • (String)


155
156
157
# File 'generated/google/apis/content_v2_1/classes.rb', line 155

def region
  @region
end

#street_addressString

Street-level part of the address. Corresponds to the JSON property streetAddress

Returns:

  • (String)


160
161
162
# File 'generated/google/apis/content_v2_1/classes.rb', line 160

def street_address
  @street_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



167
168
169
170
171
172
173
# File 'generated/google/apis/content_v2_1/classes.rb', line 167

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