Welcome to mirror list, hosted at ThFree Co, Russian Federation.

base_argument.rb « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 536a32f2bddf30a261006166e05e96e5ee0ef660 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module Types
  class BaseArgument < GraphQL::Schema::Argument
    include GitlabStyleDeprecations

    attr_reader :deprecation, :doc_reference

    def initialize(*args, **kwargs, &block)
      @deprecation = gitlab_deprecation(kwargs)
      @doc_reference = kwargs.delete(:see)

      super(*args, **kwargs, &block)
    end
  end
end