class Opbeat::StacktraceInterface::Frame

Not actually an interface, but I want to use the same style

Attributes

abs_path[RW]
context_line[RW]
default[RW]
filename[RW]
function[RW]
lineno[RW]
post_context[RW]
pre_context[RW]
vars[RW]

Public Instance Methods

to_hash() click to toggle source
Calls superclass method
# File lib/opbeat/interfaces/stack_trace.rb, line 36
def to_hash
  data = super
  data.delete('vars') unless self.vars && !self.vars.empty?
  data.delete('pre_context') unless self.pre_context && !self.pre_context.empty?
  data.delete('post_context') unless self.post_context && !self.post_context.empty?
  data.delete('context_line') unless self.context_line && !self.context_line.empty?
  data
end