Sha256: b7748067c8653e111077da0f9c139a5fbd3b24e7227f118b00a2077a91e9a82a

Contents?: true

Size: 601 Bytes

Versions: 11

Compression:

Stored size: 601 Bytes

Contents

module Sentry
  class Breadcrumb
    attr_accessor :category, :data, :message, :level, :timestamp, :type

    def initialize(category: nil, data: nil, message: nil, timestamp: nil, level: nil, type: nil)
      @category = category
      @data = data || {}
      @level = level
      @message = message
      @timestamp = timestamp || Sentry.utc_now.to_i
      @type = type
    end

    def to_hash
      {
        :category => @category,
        :data => @data,
        :level => @level,
        :message => @message,
        :timestamp => @timestamp,
        :type => @type
      }
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
sentry-ruby-core-4.1.5 lib/sentry/breadcrumb.rb
sentry-ruby-core-4.1.5.pre.beta.1 lib/sentry/breadcrumb.rb
sentry-ruby-core-4.1.5.pre.beta.0 lib/sentry/breadcrumb.rb
sentry-ruby-4.1.4 lib/sentry/breadcrumb.rb
sentry-ruby-4.1.3 lib/sentry/breadcrumb.rb
sentry-ruby-4.1.2 lib/sentry/breadcrumb.rb
sentry-ruby-4.1.1 lib/sentry/breadcrumb.rb
sentry-ruby-4.1.0 lib/sentry/breadcrumb.rb
sentry-ruby-4.0.1 lib/sentry/breadcrumb.rb
sentry-ruby-4.0.0 lib/sentry/breadcrumb.rb
sentry-ruby-0.3.0 lib/sentry/breadcrumb.rb