Class: GraphQL::Call

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

Overview

Created by Field.call, used internally by GraphQL.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, lambda:) ⇒ Call

Returns a new instance of Call.



4
5
6
7
# File 'lib/graphql/call.rb', line 4

def initialize(name:, lambda:)
  @name = name
  @lambda = lambda
end

Instance Attribute Details

#lambdaObject (readonly)

Returns the value of attribute lambda.



3
4
5
# File 'lib/graphql/call.rb', line 3

def lambda
  @lambda
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/graphql/call.rb', line 3

def name
  @name
end