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



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

def initialize(frames:)
  @frames = frames
end

Instance Attribute Details

#framesObject (readonly)

Returns the value of attribute frames.



3
4
5
# File 'lib/sentry/interfaces/stacktrace.rb', line 3

def frames
  @frames
end

Instance Method Details

#to_hashObject



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

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