class Logged::Formatter::SingleKey
Single-Key formatter for logged
Public Class Methods
new(key)
click to toggle source
# File lib/logged/formatter/single_key.rb, line 9 def initialize(key) @key = key end
Public Instance Methods
call(data)
click to toggle source
# File lib/logged/formatter/single_key.rb, line 13 def call(data) data[@key] end