Class: Logged::Formatter::SingleKey
- Defined in:
- lib/logged/formatter/single_key.rb
Overview
Single-Key formatter for logged
Instance Method Summary collapse
- #call(data) ⇒ Object
-
#initialize(key) ⇒ SingleKey
constructor
A new instance of SingleKey.
Constructor Details
#initialize(key) ⇒ SingleKey
9 10 11 |
# File 'lib/logged/formatter/single_key.rb', line 9 def initialize(key) @key = key end |
Instance Method Details
#call(data) ⇒ Object
13 14 15 |
# File 'lib/logged/formatter/single_key.rb', line 13 def call(data) data[@key] end |