lib/ke_counties/counties.rb in ke_counties-0.0.2 vs lib/ke_counties/counties.rb in ke_counties-0.0.3

- old
+ new

@@ -47,34 +47,10 @@ 'Kisii' => { code: '045', abbrv: 'KSI', capital: 'Kisii', province: 'Nyanza' }, 'Nyamira' => { code: '046', abbrv: 'NMR', capital: 'Nyamira', province: 'Nyanza' }, 'Nairobi' => { code: '047', abbrv: 'NRB', capital: 'Nairobi', province: 'Nairobi' } }.freeze - def self.all + def self.counties_hash HASH - end - - def self.names - HASH.keys - end - - def self.code(cty) - HASH.dig(cty, :code) - end - - def self.abbr(cty) - HASH.dig(cty, :abbrv) - end - - def self.capital(cty) - HASH.dig(cty, :capital) - end - - def self.province(cty) - HASH.dig(cty, :province) - end - - def self.content - HASH.values end end end