Class: Country

Inherits:
ISO3166::Country show all
Defined in:
lib/countries/global.rb

Overview

Some apps might not want to constantly call ISO3166::Country. This gem has a helper that can provide a Country class

With global Country Helper enabled

c = Country['US']

This will conflict with any existing Country constant

To Use

gem 'countries', require: 'countries/global'

Constant Summary

Constants included from ISO3166::CountryFinderMethods

ISO3166::CountryFinderMethods::FIND_BY_REGEX, ISO3166::CountryFinderMethods::SEARCH_TERM_FILTER_REGEX

Constants included from ISO3166::Emoji

ISO3166::Emoji::CODE_POINTS

Instance Attribute Summary

Attributes inherited from ISO3166::Country

#data

Method Summary

Methods inherited from ISO3166::Country

#<=>, #==, #common_name, demongoize, #eql?, evolve, #gdpr_compliant?, #hash, #in_eea?, #in_esm?, #in_eu?, #in_eu_vat?, #in_g20?, #in_g7?, #initialize, #local_name, #local_names, mongoize, #mongoize, #postal_code_format, #to_s, #translated_names, #translation, #valid?, #zip_format

Methods included from ISO3166::CountryClassMethods

#all, #all_names_with_codes, #all_translated, #codes, #collect_countries_with, #collect_likely_countries_by_subdivision_name, #new, #pluck, #translations

Methods included from ISO3166::CountryFinderMethods

#[], #find_all_by, #method_missing, #respond_to_missing?, #search

Methods included from ISO3166::TimezoneExtensions

#timezones

Methods included from ISO3166::CountrySubdivisionMethods

#find_subdivision_by_name, #humanized_subdivision_types, #states, #subdivision_for_string?, #subdivision_names, #subdivision_names_with_codes, #subdivision_types, #subdivisions, #subdivisions?, #subdivisions_of_types

Methods included from ISO3166::Emoji

#emoji_flag

Constructor Details

This class inherits a constructor from ISO3166::Country