You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ip_allowlist_entry.rb
    path of file: ./repos/gitlabhq/gems/gitlab-http/lib/gitlab/http_v2
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Gitlab
  module HTTP_V2
    class IpAllowlistEntry
      attr_reader :ip, :port

      # Argument ip should be an IPAddr object
      
    
      def ip_include?(requested_ip)
        return true if ip.include?(requested_ip)
        return ip.include?(requested_ip.ipv4_mapped) if requested_ip.ipv4? && ip.ipv6?
        return ip.ipv4_mapped.include?(requested_ip) if requested_ip.ipv6? && ip.ipv4?

        false
      end