Module: KeCounties
- Defined in:
- lib/ke_counties.rb,
lib/ke_counties/version.rb,
lib/ke_counties/counties.rb
Defined Under Namespace
Classes: Counties
Constant Summary collapse
- VERSION =
"0.0.2"
Class Method Summary collapse
- .abbr(cty) ⇒ Object
- .abbrvs ⇒ Object
- .all ⇒ Object
- .capital(cty) ⇒ Object
- .code(cty) ⇒ Object
- .codes ⇒ Object
- .names ⇒ Object
- .province(cty) ⇒ Object
Class Method Details
.abbr(cty) ⇒ Object
19 20 21 |
# File 'lib/ke_counties.rb', line 19 def abbr(cty) counties.abbr(cty) end |
.abbrvs ⇒ Object
35 36 37 |
# File 'lib/ke_counties.rb', line 35 def abbrvs counties.content.map{ |i| i[:abbrv]} end |
.all ⇒ Object
7 8 9 |
# File 'lib/ke_counties.rb', line 7 def all counties.all end |
.capital(cty) ⇒ Object
23 24 25 |
# File 'lib/ke_counties.rb', line 23 def capital(cty) counties.capital(cty) end |
.code(cty) ⇒ Object
15 16 17 |
# File 'lib/ke_counties.rb', line 15 def code(cty) counties.code(cty) end |
.codes ⇒ Object
31 32 33 |
# File 'lib/ke_counties.rb', line 31 def codes counties.content.map{ |i| i[:code]} end |
.names ⇒ Object
11 12 13 |
# File 'lib/ke_counties.rb', line 11 def names counties.names end |
.province(cty) ⇒ Object
27 28 29 |
# File 'lib/ke_counties.rb', line 27 def province(cty) counties.province(cty) end |