Class: GraphQL::Language::Nodes::InputObjectTypeDefinition
- Inherits:
-
AbstractNode
- Object
- AbstractNode
- GraphQL::Language::Nodes::InputObjectTypeDefinition
- Includes:
- Scalars::Name
- Defined in:
- lib/graphql/language/nodes.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#directives ⇒ Object
Returns the value of attribute directives.
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#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
#description ⇒ Object
Returns the value of attribute description
625 626 627 |
# File 'lib/graphql/language/nodes.rb', line 625 def description @description end |
#directives ⇒ Object
Returns the value of attribute directives
625 626 627 |
# File 'lib/graphql/language/nodes.rb', line 625 def directives @directives end |
#fields ⇒ Object
Returns the value of attribute fields
625 626 627 |
# File 'lib/graphql/language/nodes.rb', line 625 def fields @fields end |
#name ⇒ Object
Returns the value of attribute name
625 626 627 |
# File 'lib/graphql/language/nodes.rb', line 625 def name @name end |
Instance Method Details
#children ⇒ Object
634 635 636 |
# File 'lib/graphql/language/nodes.rb', line 634 def children fields + directives end |
#initialize_node(name:, fields:, directives: [], description: nil) ⇒ Object
627 628 629 630 631 632 |
# File 'lib/graphql/language/nodes.rb', line 627 def initialize_node(name:, fields:, directives: [], description: nil) @name = name @fields = fields @directives = directives @description = description end |