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_ci_variable.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
    class GroupCiVariable < Base
      attr_accessor :key, :value, :masked, :protected

      attribute :group do
        QA::Resourc
    
      def resource_web_url(resource)
        super
      rescue ResourceURLMissingError
        # this particular resource does not expose a web_url property
      end

      def api_get_path
        "/groups/#{group.id}/variables/#{key}"
      end

      def api_post_path
        "/groups/#{group.id}/variables"
      end

      def api_post_body
        {
          key: key,
          value: value,
          masked: masked,
          protected: protected
        }
      end
    end