lib/worldwide/region.rb in worldwide-1.6.2 vs lib/worldwide/region.rb in worldwide-1.7.0
- old
+ new
@@ -15,10 +15,11 @@
INSPECTION_FIELDS = [
:alpha_three,
:building_number_required,
:currency,
:example_city,
+ :example_address,
:flag,
:format,
:format_extended,
:group,
:group_name,
@@ -63,10 +64,13 @@
attr_accessor :currency
# A major city in the given region that can be used as an example
attr_accessor :example_city
+ # A full address in the given region that can be used as an example
+ attr_accessor :example_address
+
# Unicode codepoints for this region's flag emoji
attr_accessor :flag
# Hash of strings denoting how to format an address in this region.
# The format is described in https://shopify.engineering/handling-addresses-from-all-around-the-world
@@ -260,9 +264,10 @@
@week_start_day = nil
@zip_autofill_enabled = false
@zip_example = nil
@zip_prefixes = []
@zip_regex = nil
+ @example_address = nil
@parents = [].to_set
@zones = []
@zones_by_code = {}
end