class Opbeat::StacktraceInterface

Attributes

default[RW]
frames[RW]

Public Class Methods

new(*arguments) click to toggle source
Calls superclass method Opbeat::Interface::new
# File lib/opbeat/interfaces/stack_trace.rb, line 10
def initialize(*arguments)
  self.frames = []
  super(*arguments)
end

Public Instance Methods

frame(attributes=nil, &block) click to toggle source
# File lib/opbeat/interfaces/stack_trace.rb, line 21
def frame(attributes=nil, &block)
  Frame.new(attributes, &block)
end
to_hash() click to toggle source
Calls superclass method
# File lib/opbeat/interfaces/stack_trace.rb, line 15
def to_hash
  data = super
  data['frames'] = data['frames'].map{|frame| frame.to_hash}
  data
end