Class: GraphQL::Syntax::Query
- Inherits:
-
Object
- Object
- GraphQL::Syntax::Query
- Defined in:
- lib/graphql/syntax/query.rb
Instance Attribute Summary collapse
-
#nodes ⇒ Object
readonly
Returns the value of attribute nodes.
-
#variables ⇒ Object
readonly
Returns the value of attribute variables.
Instance Method Summary collapse
-
#initialize(nodes:, variables:) ⇒ Query
constructor
A new instance of Query.
Constructor Details
#initialize(nodes:, variables:) ⇒ Query
Returns a new instance of Query.
3 4 5 6 |
# File 'lib/graphql/syntax/query.rb', line 3 def initialize(nodes:, variables:) @nodes = nodes @variables = variables end |
Instance Attribute Details
#nodes ⇒ Object (readonly)
Returns the value of attribute nodes.
2 3 4 |
# File 'lib/graphql/syntax/query.rb', line 2 def nodes @nodes end |
#variables ⇒ Object (readonly)
Returns the value of attribute variables.
2 3 4 |
# File 'lib/graphql/syntax/query.rb', line 2 def variables @variables end |