Class: Google::Apis::ContentV2::AccountShippingPostalCodeRange
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::AccountShippingPostalCodeRange
- Defined in:
- generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb
Overview
A postal code range, that can be either:
- A range of postal codes (e.g., start=12340, end=12359)
- A range of postal codes prefixes (e.g., start=1234* end=1235*). Prefixes must be of the same length (e.g., start=12* end=2* is invalid).
Instance Attribute Summary collapse
-
#end ⇒ String
The last (inclusive) postal code or prefix of the range.
-
#start ⇒ String
The first (inclusive) postal code or prefix of the range.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccountShippingPostalCodeRange
constructor
A new instance of AccountShippingPostalCodeRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ AccountShippingPostalCodeRange
Returns a new instance of AccountShippingPostalCodeRange.
391 392 393 |
# File 'generated/google/apis/content_v2/classes.rb', line 391 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end ⇒ String
The last (inclusive) postal code or prefix of the range.
Corresponds to the JSON property end
384 385 386 |
# File 'generated/google/apis/content_v2/classes.rb', line 384 def end @end end |
#start ⇒ String
The first (inclusive) postal code or prefix of the range.
Corresponds to the JSON property start
389 390 391 |
# File 'generated/google/apis/content_v2/classes.rb', line 389 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
396 397 398 399 |
# File 'generated/google/apis/content_v2/classes.rb', line 396 def update!(**args) @end = args[:end] if args.key?(:end) @start = args[:start] if args.key?(:start) end |