Class: Google::Apis::MerchantapiAccountsV1beta::PostalCodeRange
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiAccountsV1beta::PostalCodeRange
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_accounts_v1beta/classes.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb
Overview
A range of postal codes that defines the region area.
Instance Attribute Summary collapse
-
#begin ⇒ String
Required.
-
#end ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PostalCodeRange
constructor
A new instance of PostalCodeRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PostalCodeRange
Returns a new instance of PostalCodeRange.
1849 1850 1851 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1849 def initialize(**args) update!(**args) end |
Instance Attribute Details
#begin ⇒ String
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
1836 1837 1838 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1836 def begin @begin end |
#end ⇒ String
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
1847 1848 1849 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1847 def end @end end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1854 1855 1856 1857 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1854 def update!(**args) @begin = args[:begin] if args.key?(:begin) @end = args[:end] if args.key?(:end) end |