Sha256: 4d386a959096d9e15d1af091b5040829481590b3bceeb83ccb9373a651135272

Contents?: true

Size: 253 Bytes

Versions: 4

Compression:

Stored size: 253 Bytes

Contents

module Timber
  # Base class for `Timber::Events::*`
  # @private
  class Event
    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

4 entries across 4 versions & 1 rubygems

Version Path
timberio-1.0.3 lib/timber/event.rb
timberio-1.0.2 lib/timber/event.rb
timberio-1.0.1 lib/timber/event.rb
timberio-1.0.0 lib/timber/event.rb