Class: GraphQL::Backtrace::Frame Private

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/backtrace.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.

Used for internal bookkeeping

API:

  • private

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path:, query:, ast_node:, object:, field:, arguments:, parent_frame:) ⇒ Frame

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 Frame.

API:

  • private



48
49
50
51
52
53
54
55
56
# File 'lib/graphql/backtrace.rb', line 48

def initialize(path:, query:, ast_node:, object:, field:, arguments:, parent_frame:)
  @path = path
  @query = query
  @ast_node = ast_node
  @field = field
  @object = object
  @arguments = arguments
  @parent_frame = parent_frame
end

Instance Attribute Details

#argumentsObject (readonly)

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



47
48
49
# File 'lib/graphql/backtrace.rb', line 47

def arguments
  @arguments
end

#ast_nodeObject (readonly)

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



47
48
49
# File 'lib/graphql/backtrace.rb', line 47

def ast_node
  @ast_node
end

#fieldObject (readonly)

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



47
48
49
# File 'lib/graphql/backtrace.rb', line 47

def field
  @field
end

#objectObject (readonly)

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



47
48
49
# File 'lib/graphql/backtrace.rb', line 47

def object
  @object
end

#parent_frameObject (readonly)

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



47
48
49
# File 'lib/graphql/backtrace.rb', line 47

def parent_frame
  @parent_frame
end

#pathObject (readonly)

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



47
48
49
# File 'lib/graphql/backtrace.rb', line 47

def path
  @path
end

#queryObject (readonly)

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



47
48
49
# File 'lib/graphql/backtrace.rb', line 47

def query
  @query
end