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.



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

def arguments
  @arguments
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#locationsObject

Returns the value of attribute locations.



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

def locations
  @locations
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

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



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

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