Class: GraphQL::Language::Nodes::OperationDefinition
- Inherits:
-
AbstractNode
- Object
- AbstractNode
- GraphQL::Language::Nodes::OperationDefinition
- Defined in:
- lib/graphql/language/nodes.rb
Instance Attribute Summary collapse
-
#directives ⇒ Object
Returns the value of attribute directives.
-
#name ⇒ Object
Returns the value of attribute name.
-
#operation_type ⇒ Object
Returns the value of attribute operation_type.
-
#selections ⇒ Object
Returns the value of attribute selections.
-
#variables ⇒ Object
Returns the value of attribute variables.
Attributes inherited from AbstractNode
Instance Method Summary collapse
Methods inherited from AbstractNode
child_attributes, #children, #initialize, #position
Constructor Details
This class inherits a constructor from GraphQL::Language::Nodes::AbstractNode
Instance Attribute Details
#directives ⇒ Object
Returns the value of attribute directives.
174 175 176 |
# File 'lib/graphql/language/nodes.rb', line 174 def directives @directives end |
#name ⇒ Object
Returns the value of attribute name.
174 175 176 |
# File 'lib/graphql/language/nodes.rb', line 174 def name @name end |
#operation_type ⇒ Object
Returns the value of attribute operation_type.
174 175 176 |
# File 'lib/graphql/language/nodes.rb', line 174 def operation_type @operation_type end |
#selections ⇒ Object
Returns the value of attribute selections.
174 175 176 |
# File 'lib/graphql/language/nodes.rb', line 174 def selections @selections end |
#variables ⇒ Object
Returns the value of attribute variables.
174 175 176 |
# File 'lib/graphql/language/nodes.rb', line 174 def variables @variables end |
Instance Method Details
#initialize_node(operation_type: nil, name: nil, variables: [], directives: [], selections: []) ⇒ Object
177 178 179 180 181 182 183 |
# File 'lib/graphql/language/nodes.rb', line 177 def initialize_node(operation_type: nil, name: nil, variables: [], directives: [], selections: []) @operation_type = operation_type @name = name @variables = variables @directives = directives @selections = selections end |