class GraphQL::EnumType::EnumValue

A value within an {EnumType}

Created with the `value` helper

Constants

ATTRIBUTES

Attributes

ast_node[RW]

Public Instance Methods

name=(new_name) click to toggle source
# File lib/graphql/enum_type.rb, line 143
def name=(new_name)
  # Validate that the name is correct
  GraphQL::NameValidator.validate!(new_name)
  @name = new_name
end