Class: GraphQL::Execution::Interpreter::Runtime::CurrentState Private

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/execution/interpreter/runtime.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

API:

  • private

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCurrentState

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of CurrentState.

API:

  • private



13
14
15
16
17
18
19
# File 'lib/graphql/execution/interpreter/runtime.rb', line 13

def initialize
  @current_field = nil
  @current_arguments = nil
  @current_result_name = nil
  @current_result = nil
  @was_authorized_by_scope_items = nil
end

Instance Attribute Details

#current_argumentsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



25
26
27
# File 'lib/graphql/execution/interpreter/runtime.rb', line 25

def current_arguments
  @current_arguments
end

#current_fieldObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



25
26
27
# File 'lib/graphql/execution/interpreter/runtime.rb', line 25

def current_field
  @current_field
end

#current_resultObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



25
26
27
# File 'lib/graphql/execution/interpreter/runtime.rb', line 25

def current_result
  @current_result
end

#current_result_nameObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



25
26
27
# File 'lib/graphql/execution/interpreter/runtime.rb', line 25

def current_result_name
  @current_result_name
end

#was_authorized_by_scope_itemsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



25
26
27
# File 'lib/graphql/execution/interpreter/runtime.rb', line 25

def was_authorized_by_scope_items
  @was_authorized_by_scope_items
end

Instance Method Details

#current_objectObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



21
22
23
# File 'lib/graphql/execution/interpreter/runtime.rb', line 21

def current_object
  @current_result.graphql_application_value
end