Class: GraphQL::Language::Nodes::NameOnlyNode

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, #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.



87
88
89
# File 'lib/graphql/language/nodes.rb', line 87

def name
  @name
end

Instance Method Details

#childrenObject



94
95
96
# File 'lib/graphql/language/nodes.rb', line 94

def children
  [].freeze
end

#initialize_node(name: nil) ⇒ Object



90
91
92
# File 'lib/graphql/language/nodes.rb', line 90

def initialize_node(name: nil)
  @name = name
end