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
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
#node ⇒ Object (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_type ⇒ Object (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 |
#path ⇒ Object (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 |