class Opbeat::ErrorMessage::Stacktrace

Attributes

frames[R]

Public Class Methods

from(config, exception) click to toggle source
# File lib/opbeat/error_message/stacktrace.rb, line 11
def self.from config, exception
  return unless exception.backtrace

  new(config, exception.backtrace.reverse.map do |line|
    Frame.from_line config, line
  end)
end
new(config, frames) click to toggle source
# File lib/opbeat/error_message/stacktrace.rb, line 5
def initialize config, frames
  @config, @frames = config, frames
end

Public Instance Methods

to_h() click to toggle source
# File lib/opbeat/error_message/stacktrace.rb, line 19
def to_h
  { frames: frames.map(&:to_h) }
end