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



65
66
67
68
69
# File 'lib/graphql/static_validation/rules/fragment_spreads_are_possible.rb', line 65

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



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

def node
  @node
end

#parent_typeObject (readonly)

Returns the value of attribute parent_type



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

def parent_type
  @parent_type
end

#pathObject (readonly)

Returns the value of attribute path



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

def path
  @path
end