Class: GraphQL::EnumType::EnumValue
- Inherits:
-
Object
- Object
- GraphQL::EnumType::EnumValue
- Defined in:
- lib/graphql/enum_type.rb
Overview
A value within an GraphQL::EnumType
Created with #value
Instance Attribute Summary collapse
-
#deprecation_reason ⇒ Object
readonly
Returns the value of attribute deprecation_reason.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name:, description:, deprecation_reason:, value:) ⇒ EnumValue
constructor
A new instance of EnumValue.
Constructor Details
#initialize(name:, description:, deprecation_reason:, value:) ⇒ EnumValue
Returns a new instance of EnumValue.
73 74 75 76 77 78 |
# File 'lib/graphql/enum_type.rb', line 73 def initialize(name:, description:, deprecation_reason:, value:) @name = name @description = description @deprecation_reason = deprecation_reason @value = value end |
Instance Attribute Details
#deprecation_reason ⇒ Object (readonly)
Returns the value of attribute deprecation_reason.
72 73 74 |
# File 'lib/graphql/enum_type.rb', line 72 def deprecation_reason @deprecation_reason end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
72 73 74 |
# File 'lib/graphql/enum_type.rb', line 72 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
72 73 74 |
# File 'lib/graphql/enum_type.rb', line 72 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
72 73 74 |
# File 'lib/graphql/enum_type.rb', line 72 def value @value end |