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, #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
#directives ⇒ Object
Returns the value of attribute directives.
210 211 212 |
# File 'lib/graphql/language/nodes.rb', line 210 def directives @directives end |
#name ⇒ Object
Returns the value of attribute name.
210 211 212 |
# File 'lib/graphql/language/nodes.rb', line 210 def name @name end |
#operation_type ⇒ Object
Returns the value of attribute operation_type.
210 211 212 |
# File 'lib/graphql/language/nodes.rb', line 210 def operation_type @operation_type end |
#selections ⇒ Object
Returns the value of attribute selections.
210 211 212 |
# File 'lib/graphql/language/nodes.rb', line 210 def selections @selections end |
#variables ⇒ Object
Returns the value of attribute variables.
210 211 212 |
# File 'lib/graphql/language/nodes.rb', line 210 def variables @variables end |
Instance Method Details
#initialize_node(operation_type: nil, name: nil, variables: [], directives: [], selections: []) ⇒ Object
214 215 216 217 218 219 220 |
# File 'lib/graphql/language/nodes.rb', line 214 def initialize_node(operation_type: nil, name: nil, variables: [], directives: [], selections: []) @operation_type = operation_type @name = name @variables = variables @directives = directives @selections = selections end |