Class: GraphQL::Stitching::Supergraph::PathNode

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/stitching/supergraph.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#costObject

Returns the value of attribute cost.



192
193
194
# File 'lib/graphql/stitching/supergraph.rb', line 192

def cost
  @cost
end

#keyObject (readonly)

Returns the value of attribute key.



191
192
193
# File 'lib/graphql/stitching/supergraph.rb', line 191

def key
  @key
end

#locationObject (readonly)

Returns the value of attribute location.



191
192
193
# File 'lib/graphql/stitching/supergraph.rb', line 191

def location
  @location
end

#resolverObject (readonly)

Returns the value of attribute resolver.



191
192
193
# File 'lib/graphql/stitching/supergraph.rb', line 191

def resolver
  @resolver
end