Class: Raven::StacktraceInterface
- Defined in:
- lib/raven/interfaces/stack_trace.rb
Defined Under Namespace
Classes: Frame
Instance Method Summary collapse
- #frame(attributes = nil, &block) ⇒ Object
-
#initialize(*arguments) ⇒ StacktraceInterface
constructor
A new instance of StacktraceInterface.
- #to_hash(*args) ⇒ Object
Methods inherited from Interface
#assert_required_properties_set!, name
Constructor Details
#initialize(*arguments) ⇒ StacktraceInterface
Returns a new instance of StacktraceInterface.
11 12 13 14 |
# File 'lib/raven/interfaces/stack_trace.rb', line 11 def initialize(*arguments) self.frames = [] super(*arguments) end |
Instance Method Details
#frame(attributes = nil, &block) ⇒ Object
22 23 24 |
# File 'lib/raven/interfaces/stack_trace.rb', line 22 def frame(attributes = nil, &block) Frame.new(attributes, &block) end |
#to_hash(*args) ⇒ Object
16 17 18 19 20 |
# File 'lib/raven/interfaces/stack_trace.rb', line 16 def to_hash(*args) data = super(*args) data['frames'] = data['frames'].map { |frame| frame.to_hash } data end |