Class: GraphQL::StaticValidation::FragmentSpreadsArePossible::FragmentSpread
- Inherits:
-
Object
- Object
- GraphQL::StaticValidation::FragmentSpreadsArePossible::FragmentSpread
- Defined in:
- lib/graphql/static_validation/rules/fragment_spreads_are_possible.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#parent_type ⇒ Object
readonly
Returns the value of attribute parent_type.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(node:, parent_type:, path:) ⇒ FragmentSpread
constructor
A new instance of FragmentSpread.
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
#node ⇒ Object (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_type ⇒ Object (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 |
#path ⇒ Object (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 |