Class: GraphQL::Language::Nodes::DirectiveDefinition
- Inherits:
-
AbstractNode
- Object
- AbstractNode
- GraphQL::Language::Nodes::DirectiveDefinition
- Defined in:
- lib/graphql/language/nodes.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
Returns the value of attribute arguments.
-
#description ⇒ Object
Returns the value of attribute description.
-
#locations ⇒ Object
Returns the value of attribute locations.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from AbstractNode
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
#arguments ⇒ Object
Returns the value of attribute arguments.
146 147 148 |
# File 'lib/graphql/language/nodes.rb', line 146 def arguments @arguments end |
#description ⇒ Object
Returns the value of attribute description.
146 147 148 |
# File 'lib/graphql/language/nodes.rb', line 146 def description @description end |
#locations ⇒ Object
Returns the value of attribute locations.
146 147 148 |
# File 'lib/graphql/language/nodes.rb', line 146 def locations @locations end |
#name ⇒ Object
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 |