Class: GraphQL::Language::Nodes::EnumTypeExtension
- Inherits:
-
AbstractNode
- Object
- AbstractNode
- GraphQL::Language::Nodes::EnumTypeExtension
- Defined in:
- lib/graphql/language/nodes.rb
Instance Attribute Summary collapse
-
#directives ⇒ Object
Returns the value of attribute directives.
-
#name ⇒ Object
Returns the value of attribute name.
-
#values ⇒ Object
Returns the value of attribute values.
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
#directives ⇒ Object
Returns the value of attribute directives
596 597 598 |
# File 'lib/graphql/language/nodes.rb', line 596 def directives @directives end |
#name ⇒ Object
Returns the value of attribute name
596 597 598 |
# File 'lib/graphql/language/nodes.rb', line 596 def name @name end |
#values ⇒ Object
Returns the value of attribute values
596 597 598 |
# File 'lib/graphql/language/nodes.rb', line 596 def values @values end |
Instance Method Details
#children ⇒ Object
604 605 606 |
# File 'lib/graphql/language/nodes.rb', line 604 def children values + directives end |
#initialize_node(name:, values:, directives: []) ⇒ Object
598 599 600 601 602 |
# File 'lib/graphql/language/nodes.rb', line 598 def initialize_node(name:, values:, directives: []) @name = name @values = values @directives = directives end |