Class: Types::BaseEnum::CustomValue
- Inherits:
-
GraphQL::Schema::EnumValue
- Object
- GraphQL::Schema::EnumValue
- Types::BaseEnum::CustomValue
- Includes:
- GitlabStyleDeprecations
- Defined in:
- app/graphql/types/base_enum.rb
Instance Attribute Summary collapse
-
#deprecation ⇒ Object
readonly
Returns the value of attribute deprecation.
Instance Method Summary collapse
-
#initialize(name, desc = nil, **kwargs) ⇒ CustomValue
constructor
A new instance of CustomValue.
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
#deprecation ⇒ Object (readonly)
Returns the value of attribute deprecation.
9 10 11 |
# File 'app/graphql/types/base_enum.rb', line 9 def deprecation @deprecation end |