Class: GraphQL::StaticValidation::FragmentSpreadsArePossible::FragmentSpread

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node:, parent_type:, path:) ⇒ FragmentSpread

Returns a new instance of FragmentSpread.



57
58
59
60
61
# File 'lib/graphql/static_validation/rules/fragment_spreads_are_possible.rb', line 57

def initialize(node:, parent_type:, path:)
  @node = node
  @parent_type = parent_type
  @path = path
end

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



56
57
58
# File 'lib/graphql/static_validation/rules/fragment_spreads_are_possible.rb', line 56

def node
  @node
end

#parent_typeObject (readonly)

Returns the value of attribute parent_type.



56
57
58
# File 'lib/graphql/static_validation/rules/fragment_spreads_are_possible.rb', line 56

def parent_type
  @parent_type
end

#pathObject (readonly)

Returns the value of attribute path.



56
57
58
# File 'lib/graphql/static_validation/rules/fragment_spreads_are_possible.rb', line 56

def path
  @path
end