Class: GraphQL::Language::Nodes::EnumTypeDefinition

Inherits:
AbstractNode
  • Object
show all
Defined in:
lib/graphql/language/nodes.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractNode

#col, #line

Instance Method Summary collapse

Methods inherited from AbstractNode

child_attributes, #children, #eql?, inherited, #initialize, #position, scalar_attributes, #scalars, #to_query_string

Constructor Details

This class inherits a constructor from GraphQL::Language::Nodes::AbstractNode

Instance Attribute Details

#nameObject

Returns the value of attribute name.



310
311
312
# File 'lib/graphql/language/nodes.rb', line 310

def name
  @name
end

#valuesObject

Returns the value of attribute values.



310
311
312
# File 'lib/graphql/language/nodes.rb', line 310

def values
  @values
end

Instance Method Details

#initialize_node(name:, values:) ⇒ Object



314
315
316
317
# File 'lib/graphql/language/nodes.rb', line 314

def initialize_node(name:, values:)
  @name = name
  @values = values
end