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.
47 48 49 50 51 |
# File 'lib/graphql/static_validation/rules/fragments_are_used.rb', line 47 def initialize(node:, path:) @node = node @name = node.name @path = path end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
46 47 48 |
# File 'lib/graphql/static_validation/rules/fragments_are_used.rb', line 46 def name @name end |
#node ⇒ Object (readonly)
Returns the value of attribute node.
46 47 48 |
# File 'lib/graphql/static_validation/rules/fragments_are_used.rb', line 46 def node @node end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
46 47 48 |
# File 'lib/graphql/static_validation/rules/fragments_are_used.rb', line 46 def path @path end |