Class: Google::Apis::ContentV2::PostalCodeGroup

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2/classes.rb,
lib/google/apis/content_v2/representations.rb,
lib/google/apis/content_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PostalCodeGroup

Returns a new instance of PostalCodeGroup.



8742
8743
8744
# File 'lib/google/apis/content_v2/classes.rb', line 8742

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

Instance Attribute Details

#countryString

The CLDR territory code of the country the postal code group applies to. Required. Corresponds to the JSON property country

Returns:

  • (String)


8730
8731
8732
# File 'lib/google/apis/content_v2/classes.rb', line 8730

def country
  @country
end

#nameString

The name of the postal code group, referred to in headers. Required. Corresponds to the JSON property name

Returns:

  • (String)


8735
8736
8737
# File 'lib/google/apis/content_v2/classes.rb', line 8735

def name
  @name
end

#postal_code_rangesArray<Google::Apis::ContentV2::PostalCodeRange>

A range of postal codes. Required. Corresponds to the JSON property postalCodeRanges



8740
8741
8742
# File 'lib/google/apis/content_v2/classes.rb', line 8740

def postal_code_ranges
  @postal_code_ranges
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8747
8748
8749
8750
8751
# File 'lib/google/apis/content_v2/classes.rb', line 8747

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