Class: GraphQL::Language::Nodes::UnionTypeDefinition

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.



412
413
414
# File 'lib/graphql/language/nodes.rb', line 412

def directives
  @directives
end

#nameObject

Returns the value of attribute name.



412
413
414
# File 'lib/graphql/language/nodes.rb', line 412

def name
  @name
end

#typesObject

Returns the value of attribute types.



412
413
414
# File 'lib/graphql/language/nodes.rb', line 412

def types
  @types
end

Instance Method Details

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



416
417
418
419
420
# File 'lib/graphql/language/nodes.rb', line 416

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