module Twitch
  module GeoIpHelper
    def readable_match_type(match_type)
      case match_type
      when IpComparison::MATCH
        return "Exact IP match found."
      when IpComparison::PARTIAL_MATCH
        return "Geo match found."
      when IpComparison::NO_MATCH
        return "No match found."
      else
        return "An error occurred in the backend when comparing that IP against the user's history."
      end
    end
  end
end
