Class: GraphQL::Language::Nodes::InputObjectTypeDefinition

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

Instance Attribute Summary collapse

Attributes inherited from AbstractNode

#col, #filename, #line

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

#descriptionObject

Returns the value of attribute description



625
626
627
# File 'lib/graphql/language/nodes.rb', line 625

def description
  @description
end

#directivesObject

Returns the value of attribute directives



625
626
627
# File 'lib/graphql/language/nodes.rb', line 625

def directives
  @directives
end

#fieldsObject

Returns the value of attribute fields



625
626
627
# File 'lib/graphql/language/nodes.rb', line 625

def fields
  @fields
end

#nameObject

Returns the value of attribute name



625
626
627
# File 'lib/graphql/language/nodes.rb', line 625

def name
  @name
end

Instance Method Details

#childrenObject



634
635
636
# File 'lib/graphql/language/nodes.rb', line 634

def children
  fields + directives
end

#initialize_node(name:, fields:, directives: [], description: nil) ⇒ Object



627
628
629
630
631
632
# File 'lib/graphql/language/nodes.rb', line 627

def initialize_node(name:, fields:, directives: [], description: nil)
  @name = name
  @fields = fields
  @directives = directives
  @description = description
end