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.3.0 lib/sentry/interface.rb
sentry-ruby-core-5.2.1 lib/sentry/interface.rb
sentry-ruby-core-5.2.0 lib/sentry/interface.rb
sentry-ruby-core-5.1.1 lib/sentry/interface.rb
sentry-ruby-core-5.1.0 lib/sentry/interface.rb
sentry-ruby-core-5.0.2 lib/sentry/interface.rb
sentry-ruby-core-5.0.1 lib/sentry/interface.rb
sentry-ruby-core-5.0.0 lib/sentry/interface.rb
sentry-ruby-core-4.9.2 lib/sentry/interface.rb
sentry-ruby-core-4.9.1 lib/sentry/interface.rb
sentry-ruby-core-4.9.0 lib/sentry/interface.rb