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.



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

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#nodeObject (readonly)

Returns the value of attribute node.



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

def node
  @node
end

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
end