Sha256: 6db628f0d5e1e8589ab51221a4a63bef1cce08ea3bcdb73dbc36007f2681ce2a

Contents?: true

Size: 363 Bytes

Versions: 14

Compression:

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

14 entries across 14 versions & 1 rubygems

Version Path
appsignal-0.6.7 lib/appsignal/to_appsignal_hash.rb
appsignal-0.6.6 lib/appsignal/to_appsignal_hash.rb
appsignal-0.6.5 lib/appsignal/to_appsignal_hash.rb
appsignal-0.6.4 lib/appsignal/to_appsignal_hash.rb
appsignal-0.6.3 lib/appsignal/to_appsignal_hash.rb
appsignal-0.6.3.beta.3 lib/appsignal/to_appsignal_hash.rb
appsignal-0.6.3.beta.2 lib/appsignal/to_appsignal_hash.rb
appsignal-0.6.3.beta.1 lib/appsignal/to_appsignal_hash.rb
appsignal-0.6.2 lib/appsignal/to_appsignal_hash.rb
appsignal-0.6.1 lib/appsignal/to_appsignal_hash.rb
appsignal-0.6.0.beta.2 lib/appsignal/to_appsignal_hash.rb
appsignal-0.6.0.beta.1 lib/appsignal/to_appsignal_hash.rb
appsignal-0.5.5 lib/appsignal/to_appsignal_hash.rb
appsignal-0.5.3 lib/appsignal/to_appsignal_hash.rb