Class: GraphQL::Language::Nodes::EnumTypeExtension

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

Instance Attribute Summary collapse

Attributes inherited from AbstractNode

#col, #filename, #line

Instance Method Summary collapse

Methods inherited from AbstractNode

#eql?, #initialize, #position, #scalars, #to_query_string

Constructor Details

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

Instance Attribute Details

#directivesObject

Returns the value of attribute directives



596
597
598
# File 'lib/graphql/language/nodes.rb', line 596

def directives
  @directives
end

#nameObject

Returns the value of attribute name



596
597
598
# File 'lib/graphql/language/nodes.rb', line 596

def name
  @name
end

#valuesObject

Returns the value of attribute values



596
597
598
# File 'lib/graphql/language/nodes.rb', line 596

def values
  @values
end

Instance Method Details

#childrenObject



604
605
606
# File 'lib/graphql/language/nodes.rb', line 604

def children
  values + directives
end

#initialize_node(name:, values:, directives: []) ⇒ Object



598
599
600
601
602
# File 'lib/graphql/language/nodes.rb', line 598

def initialize_node(name:, values:, directives: [])
  @name = name
  @values = values
  @directives = directives
end