Method: Sentry::StacktraceInterface::Frame#to_hash

Defined in:
lib/sentry/interfaces/stacktrace.rb

#to_hash(*args) ⇒ Object


69
70
71
72
73
74
75
76
# File 'lib/sentry/interfaces/stacktrace.rb', line 69

def to_hash(*args)
  data = super(*args)
  data.delete(:vars) unless vars && !vars.empty?
  data.delete(:pre_context) unless pre_context && !pre_context.empty?
  data.delete(:post_context) unless post_context && !post_context.empty?
  data.delete(:context_line) unless context_line && !context_line.empty?
  data
end