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.



62
63
64
65
66
# File 'lib/graphql/static_validation/rules/fragment_spreads_are_possible.rb', line 62

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.



61
62
63
# File 'lib/graphql/static_validation/rules/fragment_spreads_are_possible.rb', line 61

def node
  @node
end

#parent_typeObject (readonly)

Returns the value of attribute parent_type.



61
62
63
# File 'lib/graphql/static_validation/rules/fragment_spreads_are_possible.rb', line 61

def parent_type
  @parent_type
end

#pathObject (readonly)

Returns the value of attribute path.



61
62
63
# File 'lib/graphql/static_validation/rules/fragment_spreads_are_possible.rb', line 61

def path
  @path
end