Sha256: 6bfde9043124166aa1e6eb081d40548f3025858be27e8b4c0b6bd0008bc69cec

Contents?: true

Size: 348 Bytes

Versions: 8

Compression:

Stored size: 348 Bytes

Contents

require 'raven/interfaces'

module Raven
  class ExceptionInterface < Interface

    name 'exception'
    attr_accessor :values

    def to_hash(*args)
      data = super(*args)
      if data[:values]
        data[:values] = data[:values].map(&:to_hash)
      end
      data
    end
  end

  register_interface :exception => ExceptionInterface
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sentry-raven-0.15.2 lib/raven/interfaces/exception.rb
sentry-raven-0.15.1 lib/raven/interfaces/exception.rb
sentry-raven-0.15.0 lib/raven/interfaces/exception.rb
sentry-raven-0.14.0 lib/raven/interfaces/exception.rb
sentry-raven-0.13.3 lib/raven/interfaces/exception.rb
sentry-raven-0.13.2 lib/raven/interfaces/exception.rb
sentry-raven-0.13.1 lib/raven/interfaces/exception.rb
sentry-raven-0.13.0 lib/raven/interfaces/exception.rb