Class: GraphQL::Syntax::Field

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(identifier:, calls: []) ⇒ Field

Returns a new instance of Field.



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

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

Instance Attribute Details

#callsObject (readonly)

Returns the value of attribute calls.



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

def calls
  @calls
end

#identifierObject (readonly)

Returns the value of attribute identifier.



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

def identifier
  @identifier
end