Sha256: 530995c301fb43b7cff2ae29e61da2b0d73f70680d54ffc2e380b74a97d695ec

Contents?: true

Size: 331 Bytes

Versions: 5

Compression:

Stored size: 331 Bytes

Contents

module Timber
  # Base class for all `Timber::Contexts::*` classes.
  # @private
  class Context
    def keyspace
      raise NoImplementedError.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

5 entries across 5 versions & 2 rubygems

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