Module: Atlasq::PartialMatch
- Defined in:
- lib/atlasq/partial_match.rb
Class Method Summary collapse
-
.countries(term) ⇒ Array<String>
3 digit country codes (ISO3166).
-
.currencies(term) ⇒ Array<String>
3 letter currency codes (ISO4217).
-
.languages(term) ⇒ Array<String>
2 letter language codes (ISO639).
Class Method Details
.countries(term) ⇒ Array<String>
Returns 3 digit country codes (ISO3166).
7 8 9 10 |
# File 'lib/atlasq/partial_match.rb', line 7 def self.countries(term) @countries ||= Util::WordMap.new(index: Cache.get("search_index/partial_match_country.json")) @countries.search(term) end |