class Google::Apis::ContentV2::PostalCodeRange

Attributes

postal_code_range_begin[RW]

A postal code or a pattern of the form `prefix*` denoting the inclusive lower bound of the range defining the area. Examples values: `“94108”`, `“9410*”`, `“ 9*”`. Required. Corresponds to the JSON property `postalCodeRangeBegin` @return [String]

postal_code_range_end[RW]

A postal code or a pattern of the form `prefix*` denoting the inclusive upper bound of the range defining the area. It must have the same length as ` postalCodeRangeBegin`: if `postalCodeRangeBegin` is a postal code then ` postalCodeRangeEnd` must be a postal code too; if `postalCodeRangeBegin` is a pattern then `postalCodeRangeEnd` must be a pattern with the same prefix length. Optional: if not set, then the area is defined as being all the postal codes matching `postalCodeRangeBegin`. Corresponds to the JSON property `postalCodeRangeEnd` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/content_v2/classes.rb, line 8768
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 8773
def update!(**args)
  @postal_code_range_begin = args[:postal_code_range_begin] if args.key?(:postal_code_range_begin)
  @postal_code_range_end = args[:postal_code_range_end] if args.key?(:postal_code_range_end)
end