Sha256: fb619b3b488d498c092a1f6bf4a0931300235d888e8c6368f3fc0b882bb1cd7c

Contents?: true

Size: 361 Bytes

Versions: 10

Compression:

Stored size: 361 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)
      if data[:stacktrace]
        data[:stacktrace] = data[:stacktrace].to_hash
      end
      data
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sentry-raven-1.2.3 lib/raven/interfaces/single_exception.rb
sentry-raven-1.2.2 lib/raven/interfaces/single_exception.rb
sentry-raven-1.2.1 lib/raven/interfaces/single_exception.rb
sentry-raven-1.2.0 lib/raven/interfaces/single_exception.rb
sentry-raven-1.1.0 lib/raven/interfaces/single_exception.rb
sentry-raven-1.0.0 lib/raven/interfaces/single_exception.rb
sentry-raven-0.15.6 lib/raven/interfaces/single_exception.rb
sentry-raven-0.15.5 lib/raven/interfaces/single_exception.rb
sentry-raven-0.15.4 lib/raven/interfaces/single_exception.rb
sentry-raven-0.15.3 lib/raven/interfaces/single_exception.rb