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:, alias_name: nil, calls: [], fields: []) ⇒ Field

Returns a new instance of Field.



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

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

Instance Attribute Details

#alias_nameObject (readonly)

Returns the value of attribute alias_name.



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

def alias_name
  @alias_name
end

#callsObject (readonly)

Returns the value of attribute calls.



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

def calls
  @calls
end

#fieldsObject (readonly)

Returns the value of attribute fields.



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

def fields
  @fields
end

#identifierObject (readonly)

Returns the value of attribute identifier.



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

def identifier
  @identifier
end