Sha256: 8389da651fd15af66d10257ced6ebe1ee5804d32a7234d2469cc462c0bd37c44

Contents?: true

Size: 381 Bytes

Versions: 1

Compression:

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

    def to_msgpack(*args)
      as_json.to_msgpack(*args)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
timber-1.0.13 lib/timber/event.rb