Class: Google::Apis::ContentV2_1::RegionPostalCodeAreaPostalCodeRange

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Overview

A range of postal codes that defines the region area.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RegionPostalCodeAreaPostalCodeRange

Returns a new instance of RegionPostalCodeAreaPostalCodeRange.



10712
10713
10714
# File 'generated/google/apis/content_v2_1/classes.rb', line 10712

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#beginString

Required. 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*". Corresponds to the JSON property begin

Returns:

  • (String)


10699
10700
10701
# File 'generated/google/apis/content_v2_1/classes.rb', line 10699

def begin
  @begin
end

#endString

Optional. 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 end

Returns:

  • (String)


10710
10711
10712
# File 'generated/google/apis/content_v2_1/classes.rb', line 10710

def end
  @end
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10717
10718
10719
10720
# File 'generated/google/apis/content_v2_1/classes.rb', line 10717

def update!(**args)
  @begin = args[:begin] if args.key?(:begin)
  @end = args[:end] if args.key?(:end)
end