Class: Raven::StacktraceInterface

Inherits:
Interface
  • Object
show all
Defined in:
lib/raven/interfaces/stack_trace.rb

Defined Under Namespace

Classes: Frame

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Interface

name

Constructor Details

#initialize(*arguments) ⇒ StacktraceInterface

Returns a new instance of StacktraceInterface.



8
9
10
11
# File 'lib/raven/interfaces/stack_trace.rb', line 8

def initialize(*arguments)
  self.frames = []
  super(*arguments)
end

Instance Attribute Details

#framesObject

Returns the value of attribute frames.



6
7
8
# File 'lib/raven/interfaces/stack_trace.rb', line 6

def frames
  @frames
end

Instance Method Details

#to_hash(*args) ⇒ Object



13
14
15
16
17
# File 'lib/raven/interfaces/stack_trace.rb', line 13

def to_hash(*args)
  data = super(*args)
  data[:frames] = data[:frames].map(&:to_hash)
  data
end