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



98
99
100
# File 'lib/graphql/language/nodes.rb', line 98

def definitions
  @definitions
end

Instance Method Details

#initialize_node(definitions: []) ⇒ Object



101
102
103
# File 'lib/graphql/language/nodes.rb', line 101

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