Class: InfluxReporter::ErrorMessage::Stacktrace
- Inherits:
-
Object
- Object
- InfluxReporter::ErrorMessage::Stacktrace
- Defined in:
- lib/influx_reporter/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.
6 7 8 9 |
# File 'lib/influx_reporter/error_message/stacktrace.rb', line 6 def initialize(config, frames) @config = config @frames = frames end |
Instance Attribute Details
#frames ⇒ Object (readonly)
Returns the value of attribute frames.
11 12 13 |
# File 'lib/influx_reporter/error_message/stacktrace.rb', line 11 def frames @frames end |
Class Method Details
Instance Method Details
#to_h ⇒ Object
21 22 23 |
# File 'lib/influx_reporter/error_message/stacktrace.rb', line 21 def to_h { frames: frames.map(&:to_h) } end |