Sha256: a2f36143216d68ba8c1dda3bb2f59c08d9f6dddd983f9702e3a3b7c46e02e8e5

Contents?: true

Size: 343 Bytes

Versions: 3

Compression:

Stored size: 343 Bytes

Contents

require 'raven/interfaces'

module Raven
  class SingleExceptionInterface < Interface
    attr_accessor :type
    attr_accessor :value
    attr_accessor :module
    attr_accessor :stacktrace

    def to_hash(*args)
      data = super(*args)
      data[:stacktrace] = data[:stacktrace].to_hash if data[:stacktrace]
      data
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sentry-raven-2.0.2 lib/raven/interfaces/single_exception.rb
sentry-raven-2.0.1 lib/raven/interfaces/single_exception.rb
sentry-raven-2.0.0 lib/raven/interfaces/single_exception.rb