Class: GraphQL::Stitching::Supergraph::PathNode
- Inherits:
-
Object
- Object
- GraphQL::Stitching::Supergraph::PathNode
- Defined in:
- lib/graphql/stitching/supergraph.rb
Instance Attribute Summary collapse
-
#cost ⇒ Object
Returns the value of attribute cost.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#resolver ⇒ Object
readonly
Returns the value of attribute resolver.
Instance Method Summary collapse
-
#initialize(location:, key:, resolver: nil, cost: 0) ⇒ PathNode
constructor
A new instance of PathNode.
Constructor Details
#initialize(location:, key:, resolver: nil, cost: 0) ⇒ PathNode
Returns a new instance of PathNode.
194 195 196 197 198 199 |
# File 'lib/graphql/stitching/supergraph.rb', line 194 def initialize(location:, key:, resolver: nil, cost: 0) @location = location @key = key @resolver = resolver @cost = cost end |
Instance Attribute Details
#cost ⇒ Object
Returns the value of attribute cost.
192 193 194 |
# File 'lib/graphql/stitching/supergraph.rb', line 192 def cost @cost end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
191 192 193 |
# File 'lib/graphql/stitching/supergraph.rb', line 191 def key @key end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
191 192 193 |
# File 'lib/graphql/stitching/supergraph.rb', line 191 def location @location end |
#resolver ⇒ Object (readonly)
Returns the value of attribute resolver.
191 192 193 |
# File 'lib/graphql/stitching/supergraph.rb', line 191 def resolver @resolver end |