Class: GraphQL::Language::Nodes::VariableDefinition

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

Overview

An operation-level query variable

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

#default_valueString, ...



321
322
323
# File 'lib/graphql/language/nodes.rb', line 321

def default_value
  @default_value
end

#nameString



330
331
332
# File 'lib/graphql/language/nodes.rb', line 330

def name
  @name
end

#typeTypeName, ...



324
325
326
# File 'lib/graphql/language/nodes.rb', line 324

def type
  @type
end

Instance Method Details

#initialize_node(name: nil, type: nil, default_value: nil) ⇒ Object



330
331
332
333
334
# File 'lib/graphql/language/nodes.rb', line 330

def initialize_node(name: nil, type: nil, default_value: nil)
  @name = name
  @type = type
  @default_value = default_value
end