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: h_q.rb
    path of file: ./repos/avo/lib/avo/licensing
    
    the code of the file until where you have to start completion: module Avo
  module Licensing
    class HQ
      attr_accessor :current_request
      attr_accessor :cache_store

      ENDPOINT = "https://v3.avo
    
      def perform_request
        Avo.logger.debug "Performing request to avohq.io API to check license availability." if Rails.env.development?

        if Rails.env.test?
          OpenStruct.new({code: 200, parsed_response: {id: "pro", valid: true}})
        else
          HTTParty.post ENDPOINT, body: payload.to_json, headers: {"Content-type": "application/json"}, timeout: REQUEST_TIMEOUT
        end