Class: GraphQL::Language::Nodes::WrapperType
- Inherits:
-
AbstractNode
- Object
- AbstractNode
- GraphQL::Language::Nodes::WrapperType
- Defined in:
- lib/graphql/language/nodes.rb
Overview
Base class for non-null type names and list type names
Direct Known Subclasses
Instance Attribute Summary collapse
-
#of_type ⇒ Object
Returns the value of attribute of_type.
Attributes inherited from AbstractNode
Instance Method Summary collapse
Methods inherited from AbstractNode
#children, #eql?, #initialize, #position, #to_query_string
Constructor Details
This class inherits a constructor from GraphQL::Language::Nodes::AbstractNode
Instance Attribute Details
#of_type ⇒ Object
Returns the value of attribute of_type
72 73 74 |
# File 'lib/graphql/language/nodes.rb', line 72 def of_type @of_type end |
Instance Method Details
#initialize_node(of_type: nil) ⇒ Object
74 75 76 |
# File 'lib/graphql/language/nodes.rb', line 74 def initialize_node(of_type: nil) @of_type = of_type end |
#scalars ⇒ Object
78 79 80 |
# File 'lib/graphql/language/nodes.rb', line 78 def scalars [of_type] end |