Class: GraphQL::Language::Nodes::DirectiveDefinition
- Inherits:
-
AbstractNode
- Object
- AbstractNode
- GraphQL::Language::Nodes::DirectiveDefinition
- Includes:
- Scalars::Name
- 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
- #children ⇒ Object
- #initialize_node(name: nil, arguments: [], locations: [], description: nil) ⇒ Object
Methods inherited from AbstractNode
#eql?, #initialize, #position, #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.
133 134 135 |
# File 'lib/graphql/language/nodes.rb', line 133 def arguments @arguments end |
#description ⇒ Object
Returns the value of attribute description.
133 134 135 |
# File 'lib/graphql/language/nodes.rb', line 133 def description @description end |
#locations ⇒ Object
Returns the value of attribute locations.
133 134 135 |
# File 'lib/graphql/language/nodes.rb', line 133 def locations @locations end |
#name ⇒ Object
Returns the value of attribute name.
133 134 135 |
# File 'lib/graphql/language/nodes.rb', line 133 def name @name end |
Instance Method Details
#children ⇒ Object
142 143 144 |
# File 'lib/graphql/language/nodes.rb', line 142 def children arguments + locations end |
#initialize_node(name: nil, arguments: [], locations: [], description: nil) ⇒ Object
135 136 137 138 139 140 |
# File 'lib/graphql/language/nodes.rb', line 135 def initialize_node(name: nil, arguments: [], locations: [], description: nil) @name = name @arguments = arguments @locations = locations @description = description end |