Class: GraphQL::Language::Nodes::NameOnlyNode
- Inherits:
-
AbstractNode
- Object
- AbstractNode
- GraphQL::Language::Nodes::NameOnlyNode
- Defined in:
- lib/graphql/language/nodes.rb
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, #initialize, #position, #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.
63 64 65 |
# File 'lib/graphql/language/nodes.rb', line 63 def name @name end |
Instance Method Details
#children ⇒ Object
68 69 70 |
# File 'lib/graphql/language/nodes.rb', line 68 def children [].freeze end |
#initialize_node(name: nil) ⇒ Object
64 65 66 |
# File 'lib/graphql/language/nodes.rb', line 64 def initialize_node(name: nil) @name = name end |