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



63
64
65
# File 'lib/graphql/language/nodes.rb', line 63

def name
  @name
end

Instance Method Details

#childrenObject



68
69
70
# File 'lib/graphql/language/nodes.rb', line 68

def children
  [].freeze
end

#initialize_node(name: nil) ⇒ Object



64
65
66
# File 'lib/graphql/language/nodes.rb', line 64

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