Class: GraphQL::StaticValidation::FragmentsAreUsed::FragmentInstance
- Inherits:
-
Object
- Object
- GraphQL::StaticValidation::FragmentsAreUsed::FragmentInstance
- Defined in:
- lib/graphql/static_validation/rules/fragments_are_used.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(node:, path:) ⇒ FragmentInstance
constructor
A new instance of FragmentInstance.
Constructor Details
#initialize(node:, path:) ⇒ FragmentInstance
Returns a new instance of FragmentInstance.
46 47 48 49 50 |
# File 'lib/graphql/static_validation/rules/fragments_are_used.rb', line 46 def initialize(node:, path:) @node = node @name = node.name @path = path end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
45 46 47 |
# File 'lib/graphql/static_validation/rules/fragments_are_used.rb', line 45 def name @name end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
45 46 47 |
# File 'lib/graphql/static_validation/rules/fragments_are_used.rb', line 45 def node @node end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
45 46 47 |
# File 'lib/graphql/static_validation/rules/fragments_are_used.rb', line 45 def path @path end |