Sha256: 9a50a851dca2f9184b52dd6e9ad1ef67f003a560d8d9994657c1e166badfe563
Contents?: true
Size: 626 Bytes
Versions: 1
Compression:
Stored size: 626 Bytes
Contents
require_relative 'ke_counties/version' require_relative 'ke_counties/counties' module KeCounties class << self def all counties.all end def names counties.names end def code(cty) counties.code(cty) end def abbr(cty) counties.abbr(cty) end def capital(cty) counties.capital(cty) end def province(cty) counties.province(cty) end def codes counties.content.map{ |i| i[:code]} end def abbrvs counties.content.map{ |i| i[:abbrv]} end private def counties KeCounties::Counties end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ke_counties-0.0.2 | lib/ke_counties.rb |