Class: Sentry::StacktraceInterface

Inherits:
Object
  • Object
show all
Defined in:
lib/sentry/interfaces/stacktrace.rb

Defined Under Namespace

Classes: Frame

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(frames:) ⇒ StacktraceInterface

Returns a new instance of StacktraceInterface.

Parameters:

  • frames (<Array[Frame]>)


9
10
11
# File 'lib/sentry/interfaces/stacktrace.rb', line 9

def initialize(frames:)
  @frames = frames
end

Instance Attribute Details

#frames<Array[Frame]> (readonly)

Returns:



6
7
8
# File 'lib/sentry/interfaces/stacktrace.rb', line 6

def frames
  @frames
end

Instance Method Details

#inspectString

Returns:

  • (String)


19
20
21
# File 'lib/sentry/interfaces/stacktrace.rb', line 19

def inspect
  @frames.map(&:to_s)
end

#to_hashHash

Returns:

  • (Hash)


14
15
16
# File 'lib/sentry/interfaces/stacktrace.rb', line 14

def to_hash
  { frames: @frames.map(&:to_hash) }
end