class ISO3166::Setup

Handles building the in memory store of countries data
#

def codes

def codes
  @codes ||= Data.codes
end

def data

def data
  return @data if instance_variable_defined?('@data')
  @data = {}
  codes.each do |alpha2|
    @data[alpha2] = Data.new(alpha2).call
  end
  @data.freeze
end