Class: GraphQL::Schema::Addition
- Inherits:
- 
      Object
      
        - Object
- GraphQL::Schema::Addition
 
- Defined in:
- lib/graphql/schema/addition.rb
Instance Attribute Summary collapse
- 
  
    
      #arguments_with_default_values  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute arguments_with_default_values. 
- 
  
    
      #directives  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute directives. 
- 
  
    
      #possible_types  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute possible_types. 
- 
  
    
      #references  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute references. 
- 
  
    
      #types  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute types. 
- 
  
    
      #union_memberships  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute union_memberships. 
Instance Method Summary collapse
- 
  
    
      #initialize(schema:, own_types:, new_types:)  ⇒ Addition 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Addition. 
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_values ⇒ Object (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 | 
#directives ⇒ Object (readonly)
Returns the value of attribute directives.
| 6 7 8 | # File 'lib/graphql/schema/addition.rb', line 6 def directives @directives end | 
#possible_types ⇒ Object (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 | 
#references ⇒ Object (readonly)
Returns the value of attribute references.
| 6 7 8 | # File 'lib/graphql/schema/addition.rb', line 6 def references @references end | 
#types ⇒ Object (readonly)
Returns the value of attribute types.
| 6 7 8 | # File 'lib/graphql/schema/addition.rb', line 6 def types @types end | 
#union_memberships ⇒ Object (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 |