Class: GraphQL::Syntax::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/syntax/node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(identifier:, arguments:, fields: []) ⇒ Node

Returns a new instance of Node.



3
4
5
6
7
# File 'lib/graphql/syntax/node.rb', line 3

def initialize(identifier:, arguments:, fields: [])
  @identifier = identifier
  @arguments = arguments
  @fields = fields
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



2
3
4
# File 'lib/graphql/syntax/node.rb', line 2

def arguments
  @arguments
end

#fieldsObject (readonly)

Returns the value of attribute fields.



2
3
4
# File 'lib/graphql/syntax/node.rb', line 2

def fields
  @fields
end

#identifierObject (readonly)

Returns the value of attribute identifier.



2
3
4
# File 'lib/graphql/syntax/node.rb', line 2

def identifier
  @identifier
end