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


143
144
145
# File 'lib/graphql/language/nodes.rb', line 143

def arguments
  @arguments
end

#descriptionObject

Returns the value of attribute description


143
144
145
# File 'lib/graphql/language/nodes.rb', line 143

def description
  @description
end

#locationsObject

Returns the value of attribute locations


143
144
145
# File 'lib/graphql/language/nodes.rb', line 143

def locations
  @locations
end

#nameObject

Returns the value of attribute name


143
144
145
# File 'lib/graphql/language/nodes.rb', line 143

def name
  @name
end

Instance Method Details

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


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

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