Class: Opbeat::ErrorMessage::Stacktrace
- Inherits:
-
Object
- Object
- Opbeat::ErrorMessage::Stacktrace
- Defined in:
- lib/opbeat/error_message/stacktrace.rb
Defined Under Namespace
Classes: Frame
Instance Attribute Summary collapse
-
#frames ⇒ Object
readonly
Returns the value of attribute frames.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(config, frames) ⇒ Stacktrace
constructor
A new instance of Stacktrace.
- #to_h ⇒ Object
Constructor Details
#initialize(config, frames) ⇒ Stacktrace
Returns a new instance of Stacktrace.
5 6 7 |
# File 'lib/opbeat/error_message/stacktrace.rb', line 5 def initialize config, frames @config, @frames = config, frames end |
Instance Attribute Details
#frames ⇒ Object (readonly)
Returns the value of attribute frames.
9 10 11 |
# File 'lib/opbeat/error_message/stacktrace.rb', line 9 def frames @frames end |
Class Method Details
Instance Method Details
#to_h ⇒ Object
19 20 21 |
# File 'lib/opbeat/error_message/stacktrace.rb', line 19 def to_h { frames: frames.map(&:to_h) } end |