class GraphQL::EnumType::EnumValue

A value within an {EnumType}

Created with the `value` helper

Constants

ATTRIBUTES

Attributes

ast_node[RW]

Public Instance Methods

graphql_name() click to toggle source
# File lib/graphql/enum_type.rb, line 87
def graphql_name
  name
end
name=(new_name) click to toggle source
# File lib/graphql/enum_type.rb, line 81
def name=(new_name)
  # Validate that the name is correct
  GraphQL::NameValidator.validate!(new_name)
  @name = new_name
end
type_class() click to toggle source
# File lib/graphql/enum_type.rb, line 91
def type_class
  metadata[:type_class]
end