def country_has_been_configured_for_ip(ip, options={})
      # options can take a :amount key
      locale  = locale_for_ip(ip)
      country = list_countries(options).select{ |c| c.has_value? locale[:country] }.first
      {:country => country, :locale => locale} if country
    end
def country_has_been_configured_for_ip(ip, options={})
      # options can take a :amount key
      locale  = locale_for_ip(ip)
      country = list_countries(options).select{ |c| c.has_value? locale[:country] }.first
      {:country => country, :locale => locale} if country
    end
Returns a country as a Hash, if the country of the given IP has been configured for your Price Setting.

 If the country of the given IP has been configured for this Price Setting, it returns a hash with *:country* and *:locale* subhashes, else it returns *nil*.

 @param [String] ip an ip-address (e.g. from your site's visitors)
 @return [Hash] a hash containing *:country* and *:locale* subhashes