Class: GraphQL::Language::Nodes::DirectiveDefinition

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

Instance Attribute Summary collapse

Attributes inherited from AbstractNode

#col, #filename, #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

#argumentsObject

Returns the value of attribute arguments



147
148
149
# File 'lib/graphql/language/nodes.rb', line 147

def arguments
  @arguments
end

#descriptionObject

Returns the value of attribute description



147
148
149
# File 'lib/graphql/language/nodes.rb', line 147

def description
  @description
end

#locationsObject

Returns the value of attribute locations



147
148
149
# File 'lib/graphql/language/nodes.rb', line 147

def locations
  @locations
end

#nameObject

Returns the value of attribute name



147
148
149
# File 'lib/graphql/language/nodes.rb', line 147

def name
  @name
end

Instance Method Details

#initialize_node(name: nil, arguments: [], locations: [], description: nil) ⇒ Object



151
152
153
154
155
156
# File 'lib/graphql/language/nodes.rb', line 151

def initialize_node(name: nil, arguments: [], locations: [], description: nil)
  @name = name
  @arguments = arguments
  @locations = locations
  @description = description
end