Sha256: 1394c9bf99677502aa5505f216e87171676619b9a64f8d71323a2f10ddab7b7a

Contents?: true

Size: 365 Bytes

Versions: 2

Compression:

Stored size: 365 Bytes

Contents

module Appsignal
  module ToAppsignalHash

    def to_appsignal_hash
      {
        :name => name,
        :duration => duration,
        :time => time.to_f,
        :end => self.end.to_f,
        :payload => payload
      }
    end

  end
end

module ActiveSupport
  module Notifications
    class Event
      include Appsignal::ToAppsignalHash
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
appsignal-0.5.1 lib/appsignal/to_appsignal_hash.rb
appsignal-0.5.0 lib/appsignal/to_appsignal_hash.rb