Class: GraphQL::Schema::Addition

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/schema/addition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(schema:, own_types:, new_types:) ⇒ Addition

Returns a new instance of Addition.



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/graphql/schema/addition.rb', line 8

def initialize(schema:, own_types:, new_types:)
  @schema = schema
  @own_types = own_types
  @directives = Set.new
  @possible_types = {}
  @types = {}
  @union_memberships = {}
  @references = Hash.new { |h, k| h[k] = [] }
  @arguments_with_default_values = []
  add_type_and_traverse(new_types)
end

Instance Attribute Details

#arguments_with_default_valuesObject (readonly)

Returns the value of attribute arguments_with_default_values.



6
7
8
# File 'lib/graphql/schema/addition.rb', line 6

def arguments_with_default_values
  @arguments_with_default_values
end

#directivesObject (readonly)

Returns the value of attribute directives.



6
7
8
# File 'lib/graphql/schema/addition.rb', line 6

def directives
  @directives
end

#possible_typesObject (readonly)

Returns the value of attribute possible_types.



6
7
8
# File 'lib/graphql/schema/addition.rb', line 6

def possible_types
  @possible_types
end

#referencesObject (readonly)

Returns the value of attribute references.



6
7
8
# File 'lib/graphql/schema/addition.rb', line 6

def references
  @references
end

#typesObject (readonly)

Returns the value of attribute types.



6
7
8
# File 'lib/graphql/schema/addition.rb', line 6

def types
  @types
end

#union_membershipsObject (readonly)

Returns the value of attribute union_memberships.



6
7
8
# File 'lib/graphql/schema/addition.rb', line 6

def union_memberships
  @union_memberships
end