Class: Google::Apis::ContentV2::PostalCodeRange
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ContentV2::PostalCodeRange
 
- Defined in:
- generated/google/apis/content_v2/classes.rb,
 generated/google/apis/content_v2/representations.rb,
 generated/google/apis/content_v2/representations.rb
Instance Attribute Summary collapse
- 
  
    
      #postal_code_range_begin  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A postal code or a pattern of the form prefix* denoting the inclusive lower bound of the range defining the area. 
- 
  
    
      #postal_code_range_end  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A postal code or a pattern of the form prefix* denoting the inclusive upper bound of the range defining the area. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ PostalCodeRange 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of PostalCodeRange. 
- 
  
    
      #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) ⇒ PostalCodeRange
Returns a new instance of PostalCodeRange
| 6746 6747 6748 | # File 'generated/google/apis/content_v2/classes.rb', line 6746 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#postal_code_range_begin ⇒ String
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
| 6733 6734 6735 | # File 'generated/google/apis/content_v2/classes.rb', line 6733 def postal_code_range_begin @postal_code_range_begin end | 
#postal_code_range_end ⇒ String
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
| 6744 6745 6746 | # File 'generated/google/apis/content_v2/classes.rb', line 6744 def postal_code_range_end @postal_code_range_end end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 6751 6752 6753 6754 | # File 'generated/google/apis/content_v2/classes.rb', line 6751 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 |