Class: GraphQL::Language::Nodes::ObjectTypeExtension
- Inherits:
- 
      AbstractNode
      
        - Object
- AbstractNode
- GraphQL::Language::Nodes::ObjectTypeExtension
 
- Defined in:
- lib/graphql/language/nodes.rb
Instance Attribute Summary collapse
- 
  
    
      #directives  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute directives. 
- 
  
    
      #fields  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute fields. 
- 
  
    
      #interfaces  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute interfaces. 
- 
  
    
      #name  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute name. 
Attributes inherited from AbstractNode
Instance Method Summary collapse
Methods inherited from AbstractNode
#eql?, #initialize, #position, #scalars, #to_query_string
Constructor Details
This class inherits a constructor from GraphQL::Language::Nodes::AbstractNode
Instance Attribute Details
#directives ⇒ Object
Returns the value of attribute directives.
| 465 466 467 | # File 'lib/graphql/language/nodes.rb', line 465 def directives @directives end | 
#fields ⇒ Object
Returns the value of attribute fields.
| 465 466 467 | # File 'lib/graphql/language/nodes.rb', line 465 def fields @fields end | 
#interfaces ⇒ Object
Returns the value of attribute interfaces.
| 465 466 467 | # File 'lib/graphql/language/nodes.rb', line 465 def interfaces @interfaces end | 
#name ⇒ Object
Returns the value of attribute name.
| 465 466 467 | # File 'lib/graphql/language/nodes.rb', line 465 def name @name end | 
Instance Method Details
#children ⇒ Object
| 474 475 476 | # File 'lib/graphql/language/nodes.rb', line 474 def children interfaces + fields + directives end | 
#initialize_node(name:, interfaces:, fields:, directives: []) ⇒ Object
| 467 468 469 470 471 472 | # File 'lib/graphql/language/nodes.rb', line 467 def initialize_node(name:, interfaces:, fields:, directives: []) @name = name @interfaces = interfaces || [] @directives = directives @fields = fields end |