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

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

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize ⇒ CurrentState

Returns a new instance of CurrentState.



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

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_arguments ⇒ Object

Returns the value of attribute current_arguments.



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

def current_arguments
  @current_arguments
end

#current_field ⇒ Object

Returns the value of attribute current_field.



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

def current_field
  @current_field
end

#current_result ⇒ Object

Returns the value of attribute current_result.



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

def current_result
  @current_result
end

#current_result_name ⇒ Object

Returns the value of attribute current_result_name.



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

def current_result_name
  @current_result_name
end

#was_authorized_by_scope_items ⇒ Object

Returns the value of attribute was_authorized_by_scope_items.



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

def was_authorized_by_scope_items
  @was_authorized_by_scope_items
end

Instance Method Details

#current_object ⇒ Object



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

def current_object
  @current_result.graphql_application_value
end