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

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.



53
54
55
56
57
58
59
60
61
# File 'lib/graphql/backtrace.rb', line 53

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.



52
53
54
# File 'lib/graphql/backtrace.rb', line 52

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.



52
53
54
# File 'lib/graphql/backtrace.rb', line 52

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.



52
53
54
# File 'lib/graphql/backtrace.rb', line 52

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.



52
53
54
# File 'lib/graphql/backtrace.rb', line 52

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.



52
53
54
# File 'lib/graphql/backtrace.rb', line 52

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.



52
53
54
# File 'lib/graphql/backtrace.rb', line 52

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.



52
53
54
# File 'lib/graphql/backtrace.rb', line 52

def query
  @query
end