Class: Raven::StacktraceInterface
- Defined in:
- lib/raven/interfaces/stack_trace.rb
Defined Under Namespace
Classes: Frame
Instance Attribute Summary collapse
-
#frames ⇒ Object
Returns the value of attribute frames.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*arguments) ⇒ StacktraceInterface
constructor
A new instance of StacktraceInterface.
- #to_hash(*args) ⇒ Object
Methods inherited from Interface
Constructor Details
#initialize(*arguments) ⇒ StacktraceInterface
Returns a new instance of StacktraceInterface.
7 8 9 10 |
# File 'lib/raven/interfaces/stack_trace.rb', line 7 def initialize(*arguments) self.frames = [] super(*arguments) end |
Instance Attribute Details
#frames ⇒ Object
Returns the value of attribute frames.
5 6 7 |
# File 'lib/raven/interfaces/stack_trace.rb', line 5 def frames @frames end |
Class Method Details
.sentry_alias ⇒ Object
12 13 14 |
# File 'lib/raven/interfaces/stack_trace.rb', line 12 def self.sentry_alias :stacktrace end |
Instance Method Details
#to_hash(*args) ⇒ Object
16 17 18 19 20 |
# File 'lib/raven/interfaces/stack_trace.rb', line 16 def to_hash(*args) data = super(*args) data[:frames] = data[:frames].map(&:to_hash) data end |