Class: GraphQL::Language::Nodes::NameOnlyNode
- Inherits:
-
AbstractNode
- Object
- AbstractNode
- GraphQL::Language::Nodes::NameOnlyNode
- Includes:
- Scalars::Name
- 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
#children, #eql?, #initialize, #position, #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
87 88 89 |
# File 'lib/graphql/language/nodes.rb', line 87 def name @name end |
Instance Method Details
#initialize_node(name: nil) ⇒ Object
89 90 91 |
# File 'lib/graphql/language/nodes.rb', line 89 def initialize_node(name: nil) @name = name end |