Class: Google::Apis::ContentV2_1::AccountAddress
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::AccountAddress
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Instance Attribute Summary collapse
-
#country ⇒ String
CLDR country code (for example, "US").
-
#locality ⇒ String
City, town or commune.
-
#postal_code ⇒ String
Postal code or ZIP (for example, "94043").
-
#region ⇒ String
Top-level administrative subdivision of the country.
-
#street_address ⇒ String
Street-level part of the address.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccountAddress
constructor
A new instance of AccountAddress.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AccountAddress
Returns a new instance of AccountAddress.
197 198 199 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 197 def initialize(**args) update!(**args) end |
Instance Attribute Details
#country ⇒ String
CLDR country code (for example, "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
173 174 175 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 173 def country @country end |
#locality ⇒ String
City, town or commune. May also include dependent localities or sublocalities (
for example, neighborhoods or suburbs).
Corresponds to the JSON property locality
179 180 181 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 179 def locality @locality end |
#postal_code ⇒ String
Postal code or ZIP (for example, "94043").
Corresponds to the JSON property postalCode
184 185 186 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 184 def postal_code @postal_code end |
#region ⇒ String
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
190 191 192 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 190 def region @region end |
#street_address ⇒ String
Street-level part of the address. Use \n
to add a second line.
Corresponds to the JSON property streetAddress
195 196 197 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 195 def street_address @street_address end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
202 203 204 205 206 207 208 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 202 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 |