Class: Sentry::StacktraceInterface
- Inherits:
-
Object
- Object
- Sentry::StacktraceInterface
- Defined in:
- lib/sentry/interfaces/stacktrace.rb
Defined Under Namespace
Classes: Frame
Instance Attribute Summary collapse
- #frames ⇒ <Array[Frame]> readonly
Instance Method Summary collapse
-
#initialize(frames:) ⇒ StacktraceInterface
constructor
A new instance of StacktraceInterface.
- #inspect ⇒ String
- #to_hash ⇒ Hash
Constructor Details
#initialize(frames:) ⇒ StacktraceInterface
Returns a new instance of StacktraceInterface.
9 10 11 |
# File 'lib/sentry/interfaces/stacktrace.rb', line 9 def initialize(frames:) @frames = frames end |
Instance Attribute Details
#frames ⇒ <Array[Frame]> (readonly)
6 7 8 |
# File 'lib/sentry/interfaces/stacktrace.rb', line 6 def frames @frames end |
Instance Method Details
#inspect ⇒ String
19 20 21 |
# File 'lib/sentry/interfaces/stacktrace.rb', line 19 def inspect @frames.map(&:to_s) end |
#to_hash ⇒ Hash
14 15 16 |
# File 'lib/sentry/interfaces/stacktrace.rb', line 14 def to_hash { frames: @frames.map(&:to_hash) } end |