Class: GraphQL::Language::Nodes::Document

Inherits:
AbstractNode 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

#definitionsObject

Returns the value of attribute definitions.



126
127
128
# File 'lib/graphql/language/nodes.rb', line 126

def definitions
  @definitions
end

Instance Method Details

#initialize_node(definitions: []) ⇒ Object



129
130
131
# File 'lib/graphql/language/nodes.rb', line 129

def initialize_node(definitions: [])
  @definitions = definitions
end