Class: GraphQL::StaticValidation::FragmentsAreUsed::FragmentInstance

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node:, path:) ⇒ FragmentInstance

Returns a new instance of FragmentInstance.



46
47
48
49
50
# File 'lib/graphql/static_validation/rules/fragments_are_used.rb', line 46

def initialize(node:, path:)
  @node = node
  @name = node.name
  @path = path
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



45
46
47
# File 'lib/graphql/static_validation/rules/fragments_are_used.rb', line 45

def name
  @name
end

#nodeObject (readonly)

Returns the value of attribute node.



45
46
47
# File 'lib/graphql/static_validation/rules/fragments_are_used.rb', line 45

def node
  @node
end

#pathObject (readonly)

Returns the value of attribute path.



45
46
47
# File 'lib/graphql/static_validation/rules/fragments_are_used.rb', line 45

def path
  @path
end