Sha256: 1133585f8866c236bcea3d543a6b6242187a9e4c4f62f5aaea467390900446fc

Contents?: true

Size: 361 Bytes

Versions: 10

Compression:

Stored size: 361 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 = {})
      as_json.to_json(options)
    end

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
timber-1.1.9 lib/timber/event.rb
timber-1.1.8 lib/timber/event.rb
timber-1.1.7 lib/timber/event.rb
timber-1.1.6 lib/timber/event.rb
timber-1.1.5 lib/timber/event.rb
timber-1.1.4 lib/timber/event.rb
timber-1.1.3 lib/timber/event.rb
timber-1.1.2 lib/timber/event.rb
timber-1.1.1 lib/timber/event.rb
timber-1.1.0 lib/timber/event.rb