Class: Google::Apis::ContentV2_1::ReturnAddressAddress
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::ReturnAddressAddress
- 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
-
#country ⇒ String
CLDR country code (e.g. "US").
-
#locality ⇒ String
City, town or commune.
-
#postal_code ⇒ String
Postal code or ZIP (e.g. "94043").
-
#recipient_name ⇒ String
Name of the recipient to address returns to.
-
#region ⇒ String
Top-level administrative subdivision of the country.
-
#street_address ⇒ Array<String>
Street-level part of the address.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReturnAddressAddress
constructor
A new instance of ReturnAddressAddress.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ReturnAddressAddress
Returns a new instance of ReturnAddressAddress.
8661 8662 8663 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8661 def initialize(**args) update!(**args) end |
Instance Attribute Details
#country ⇒ String
CLDR country code (e.g. "US").
Corresponds to the JSON property country
8631 8632 8633 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8631 def country @country end |
#locality ⇒ String
City, town or commune. May also include dependent localities or sublocalities (
e.g. neighborhoods or suburbs).
Corresponds to the JSON property locality
8637 8638 8639 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8637 def locality @locality end |
#postal_code ⇒ String
Postal code or ZIP (e.g. "94043").
Corresponds to the JSON property postalCode
8642 8643 8644 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8642 def postal_code @postal_code end |
#recipient_name ⇒ String
Name of the recipient to address returns to.
Corresponds to the JSON property recipientName
8647 8648 8649 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8647 def recipient_name @recipient_name 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
8653 8654 8655 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8653 def region @region end |
#street_address ⇒ Array<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
8659 8660 8661 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8659 def street_address @street_address end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8666 8667 8668 8669 8670 8671 8672 8673 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 8666 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 |