Sha256: 85771253da0b01d2c616cb42dc229d7bf77f0f36329c7955dde06dfa623eca6e
Contents?: true
Size: 313 Bytes
Versions: 3
Compression:
Stored size: 313 Bytes
Contents
module Errplane class BlackBox attr_reader :exception def initialize(params = {}) @exception = params[:exception] end def to_json { :time => Time.now.to_i, :message => @exception.message, :backtrace => @exception.backtrace }.to_json end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
errplane-0.0.3 | lib/errplane/black_box.rb |
errplane-0.0.2 | lib/errplane/black_box.rb |
errplane-0.0.1 | lib/errplane/black_box.rb |