Class: GraphQL::StaticValidation::VariablesAreUsedAndDefined::VariableUsage
- Inherits:
-
Object
- Object
- GraphQL::StaticValidation::VariablesAreUsedAndDefined::VariableUsage
- Defined in:
- lib/graphql/static_validation/rules/variables_are_used_and_defined.rb
Instance Attribute Summary collapse
-
#ast_node ⇒ Object
Returns the value of attribute ast_node.
-
#declared_by ⇒ Object
Returns the value of attribute declared_by.
-
#path ⇒ Object
Returns the value of attribute path.
-
#used_by ⇒ Object
Returns the value of attribute used_by.
Instance Method Summary collapse
Instance Attribute Details
#ast_node ⇒ Object
Returns the value of attribute ast_node.
20 21 22 |
# File 'lib/graphql/static_validation/rules/variables_are_used_and_defined.rb', line 20 def ast_node @ast_node end |
#declared_by ⇒ Object
Returns the value of attribute declared_by.
20 21 22 |
# File 'lib/graphql/static_validation/rules/variables_are_used_and_defined.rb', line 20 def declared_by @declared_by end |
#path ⇒ Object
Returns the value of attribute path.
20 21 22 |
# File 'lib/graphql/static_validation/rules/variables_are_used_and_defined.rb', line 20 def path @path end |
#used_by ⇒ Object
Returns the value of attribute used_by.
20 21 22 |
# File 'lib/graphql/static_validation/rules/variables_are_used_and_defined.rb', line 20 def used_by @used_by end |
Instance Method Details
#declared? ⇒ Boolean
25 26 27 |
# File 'lib/graphql/static_validation/rules/variables_are_used_and_defined.rb', line 25 def declared? !!@declared_by end |
#used? ⇒ Boolean
21 22 23 |
# File 'lib/graphql/static_validation/rules/variables_are_used_and_defined.rb', line 21 def used? !!@used_by end |