Class: GraphQL::StaticValidation::VariablesAreUsedAndDefined::VariableUsage

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/static_validation/rules/variables_are_used_and_defined.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#ast_nodeObject

Returns the value of attribute ast_node


17
18
19
# File 'lib/graphql/static_validation/rules/variables_are_used_and_defined.rb', line 17

def ast_node
  @ast_node
end

#declared_byObject

Returns the value of attribute declared_by


17
18
19
# File 'lib/graphql/static_validation/rules/variables_are_used_and_defined.rb', line 17

def declared_by
  @declared_by
end

#pathObject

Returns the value of attribute path


17
18
19
# File 'lib/graphql/static_validation/rules/variables_are_used_and_defined.rb', line 17

def path
  @path
end

#used_byObject

Returns the value of attribute used_by


17
18
19
# File 'lib/graphql/static_validation/rules/variables_are_used_and_defined.rb', line 17

def used_by
  @used_by
end

Instance Method Details

#declared?Boolean

Returns:

  • (Boolean)

22
23
24
# File 'lib/graphql/static_validation/rules/variables_are_used_and_defined.rb', line 22

def declared?
  !!@declared_by
end

#used?Boolean

Returns:

  • (Boolean)

18
19
20
# File 'lib/graphql/static_validation/rules/variables_are_used_and_defined.rb', line 18

def used?
  !!@used_by
end