class Google::Apis::ContentV2_1::ReturnAddressAddress
Attributes
CLDR country code (e.g. “US”). Corresponds to the JSON property `country` @return [String]
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 or ZIP (e.g. “94043”). Corresponds to the JSON property `postalCode` @return [String]
Name of the recipient to address returns to. Corresponds to the JSON property `recipientName` @return [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` @return [String]
Street-level part of the address. May be up to two lines, each line specified as an array element. Corresponds to the JSON property `streetAddress` @return [Array<String>]
Public Class Methods
# File lib/google/apis/content_v2_1/classes.rb, line 12975 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/content_v2_1/classes.rb, line 12980 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) @recipient_name = args[:recipient_name] if args.key?(:recipient_name) @region = args[:region] if args.key?(:region) @street_address = args[:street_address] if args.key?(:street_address) end