Class: Sentry::StacktraceInterface
- Defined in:
- lib/sentry/interfaces/stacktrace.rb
Defined Under Namespace
Classes: Frame
Instance Attribute Summary collapse
-
#frames ⇒ Object
readonly
Returns the value of attribute frames.
Instance Method Summary collapse
-
#initialize(frames:) ⇒ StacktraceInterface
constructor
A new instance of StacktraceInterface.
- #to_hash ⇒ Object
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
#frames ⇒ Object (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_hash ⇒ Object
9 10 11 |
# File 'lib/sentry/interfaces/stacktrace.rb', line 9 def to_hash { frames: @frames.map(&:to_hash) } end |