Class: GraphQL::Language::Nodes::EnumTypeDefinition

Inherits:
AbstractNode
  • Object
show all
Defined in:
lib/graphql/language/nodes.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractNode

#col, #line

Instance Method Summary collapse

Methods inherited from AbstractNode

child_attributes, #children, #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

#directivesObject

Returns the value of attribute directives.



424
425
426
# File 'lib/graphql/language/nodes.rb', line 424

def directives
  @directives
end

#nameObject

Returns the value of attribute name.



424
425
426
# File 'lib/graphql/language/nodes.rb', line 424

def name
  @name
end

#valuesObject

Returns the value of attribute values.



424
425
426
# File 'lib/graphql/language/nodes.rb', line 424

def values
  @values
end

Instance Method Details

#initialize_node(name:, values:, directives: []) ⇒ Object



428
429
430
431
432
# File 'lib/graphql/language/nodes.rb', line 428

def initialize_node(name:, values:, directives: [])
  @name = name
  @values = values
  @directives = directives
end