Class: GraphQL::Stitching::Planner::ScopePartition

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location:, selections:) ⇒ ScopePartition

Returns a new instance of ScopePartition.



16
17
18
19
# File 'lib/graphql/stitching/planner.rb', line 16

def initialize(location:, selections:)
  @location = location
  @selections = selections
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



14
15
16
# File 'lib/graphql/stitching/planner.rb', line 14

def location
  @location
end

#selectionsObject (readonly)

Returns the value of attribute selections.



14
15
16
# File 'lib/graphql/stitching/planner.rb', line 14

def selections
  @selections
end