lib/crags/country.rb in crags-2.0.0 vs lib/crags/country.rb in crags-2.1.0

- old
+ new

@@ -1,9 +1,17 @@ module Crags class Country include Fetcher attr_reader :code + def self.codes + Config.country_codes + end + + def self.all + codes.collect {|code| new(code)} + end + def initialize(code) @code = code end def url \ No newline at end of file