Sha256: e18485d500d6b89a8c465f6f77ff5517141708a019fe40ec26484d9c33c2fa35

Contents?: true

Size: 347 Bytes

Versions: 10

Compression:

Stored size: 347 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

10 entries across 10 versions & 1 rubygems

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