Class: GraphQL::Language::Nodes::NameOnlyNode
- Inherits:
-
AbstractNode
- Object
- AbstractNode
- GraphQL::Language::Nodes::NameOnlyNode
- Defined in:
- lib/graphql/language/nodes.rb
Overview
Base class for nodes whose only value is a name (no child nodes or other scalars)
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from AbstractNode
Instance Method Summary collapse
Methods inherited from AbstractNode
child_attributes, #eql?, inherited, #initialize, #position, scalar_attributes, #scalars, #to_query_string
Constructor Details
This class inherits a constructor from GraphQL::Language::Nodes::AbstractNode
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
99 100 101 |
# File 'lib/graphql/language/nodes.rb', line 99 def name @name end |
Instance Method Details
#children ⇒ Object
106 107 108 |
# File 'lib/graphql/language/nodes.rb', line 106 def children [].freeze end |
#initialize_node(name: nil) ⇒ Object
102 103 104 |
# File 'lib/graphql/language/nodes.rb', line 102 def initialize_node(name: nil) @name = name end |