Class: Google::Apis::ContentV2_1::PostalCodeGroup
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::PostalCodeGroup
- 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
The CLDR territory code of the country the postal code group applies to.
-
#name ⇒ String
The name of the postal code group, referred to in headers.
-
#postal_code_ranges ⇒ Array<Google::Apis::ContentV2_1::PostalCodeRange>
A range of postal codes.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PostalCodeGroup
constructor
A new instance of PostalCodeGroup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PostalCodeGroup
Returns a new instance of PostalCodeGroup.
10050 10051 10052 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10050 def initialize(**args) update!(**args) end |
Instance Attribute Details
#country ⇒ String
The CLDR territory code of the country the postal code group applies to.
Required.
Corresponds to the JSON property country
10038 10039 10040 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10038 def country @country end |
#name ⇒ String
The name of the postal code group, referred to in headers. Required.
Corresponds to the JSON property name
10043 10044 10045 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10043 def name @name end |
#postal_code_ranges ⇒ Array<Google::Apis::ContentV2_1::PostalCodeRange>
A range of postal codes. Required.
Corresponds to the JSON property postalCodeRanges
10048 10049 10050 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10048 def postal_code_ranges @postal_code_ranges end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10055 10056 10057 10058 10059 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 10055 def update!(**args) @country = args[:country] if args.key?(:country) @name = args[:name] if args.key?(:name) @postal_code_ranges = args[:postal_code_ranges] if args.key?(:postal_code_ranges) end |