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: group_badge.rb
    path of file: ./repos/gitlabhq/qa/qa/resource
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module QA
  module Resource
 
    
      def resource_web_url(_resource); end

      protected

      # Return subset of fields for comparing badges
      #
      # @return [Hash]
      def comparable
        reload! unless api_response

        api_response.slice(
          :name,
          :link_url,
          :image_url
        )
      end
    end