Class: Types::BaseEnum::CustomValue

Inherits:
GraphQL::Schema::EnumValue
  • Object
show all
Includes:
GitlabStyleDeprecations
Defined in:
app/graphql/types/base_enum.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, desc = nil, **kwargs) ⇒ CustomValue

Returns a new instance of CustomValue.


11
12
13
14
15
# File 'app/graphql/types/base_enum.rb', line 11

def initialize(name, desc = nil, **kwargs)
  @deprecation = gitlab_deprecation(kwargs)

  super(name, desc, **kwargs)
end

Instance Attribute Details

#deprecationObject (readonly)

Returns the value of attribute deprecation.


9
10
11
# File 'app/graphql/types/base_enum.rb', line 9

def deprecation
  @deprecation
end