Sha256: c131bdd13043b483abf735b4cf22991afb5aa498eae6fc32623c9dd3be0267e4

Contents?: true

Size: 409 Bytes

Versions: 51

Compression:

Stored size: 409 Bytes

Contents

# frozen_string_literal: true

module Sentry
  class Interface
    # @return [Hash]
    def to_hash
      Hash[instance_variables.map { |name| [name[1..-1].to_sym, instance_variable_get(name)] }]
    end
  end
end

require "sentry/interfaces/exception"
require "sentry/interfaces/request"
require "sentry/interfaces/single_exception"
require "sentry/interfaces/stacktrace"
require "sentry/interfaces/threads"

Version data entries

51 entries across 51 versions & 2 rubygems

Version Path
sentry-ruby-core-5.17.1 lib/sentry/interface.rb
sentry-ruby-5.17.1 lib/sentry/interface.rb
sentry-ruby-5.17.0 lib/sentry/interface.rb
sentry-ruby-core-5.17.0 lib/sentry/interface.rb
sentry-ruby-core-5.16.1 lib/sentry/interface.rb
sentry-ruby-5.16.1 lib/sentry/interface.rb
sentry-ruby-5.16.0 lib/sentry/interface.rb
sentry-ruby-core-5.16.0 lib/sentry/interface.rb
sentry-ruby-5.15.2 lib/sentry/interface.rb
sentry-ruby-core-5.15.2 lib/sentry/interface.rb
sentry-ruby-core-5.15.1 lib/sentry/interface.rb
sentry-ruby-5.15.1 lib/sentry/interface.rb
sentry-ruby-5.15.0 lib/sentry/interface.rb
sentry-ruby-core-5.15.0 lib/sentry/interface.rb
sentry-ruby-5.14.0 lib/sentry/interface.rb
sentry-ruby-core-5.14.0 lib/sentry/interface.rb
sentry-ruby-5.13.0 lib/sentry/interface.rb
sentry-ruby-core-5.13.0 lib/sentry/interface.rb
sentry-ruby-5.12.0 lib/sentry/interface.rb
sentry-ruby-core-5.12.0 lib/sentry/interface.rb