Sha256: 442993a59652ef0073bf341fb2ff781a2ce4bb6c5fe728e63ed16021b13fba95

Contents?: true

Size: 314 Bytes

Versions: 10

Compression:

Stored size: 314 Bytes

Contents

module Timber
  # Base class for `Timber::Events::*`
  # @private
  class Event
    def message
      raise NotImplementedError.new
    end

    def as_json(options = {})
      raise NotImplementedError.new
    end

    def to_json(options = {})
      Util::Hash.compact(as_json).to_json(options)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
timber-1.0.12 lib/timber/event.rb
timber-1.0.11 lib/timber/event.rb
timber-1.0.10 lib/timber/event.rb
timber-1.0.9 lib/timber/event.rb
timber-1.0.8 lib/timber/event.rb
timber-1.0.7 lib/timber/event.rb
timber-1.0.6 lib/timber/event.rb
timber-1.0.5 lib/timber/event.rb
timber-1.0.4 lib/timber/event.rb
timber-1.0.3 lib/timber/event.rb