class Google::Apis::ContentV2::PostalCodeGroup

Attributes

country[RW]

The CLDR territory code of the country the postal code group applies to. Required. Corresponds to the JSON property `country` @return [String]

name[RW]

The name of the postal code group, referred to in headers. Required. Corresponds to the JSON property `name` @return [String]

postal_code_ranges[RW]

A range of postal codes. Required. Corresponds to the JSON property `postalCodeRanges` @return [Array<Google::Apis::ContentV2::PostalCodeRange>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2/classes.rb, line 8734
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/content_v2/classes.rb, line 8739
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