class IpComparisonResult

  attr_accessor :fields, :match_type

  def initialize(match_type, matching_fields = {})
    @match_type = match_type
    @fields = matching_fields
  end

  def matching?
    return @match_type == IpComparison::MATCH || @match_type == IpComparison::PARTIAL_MATCH
  end
end
