Method: Timber::Contexts::Custom#initialize
- Defined in:
- lib/timber/contexts/custom.rb
#initialize(attributes) ⇒ Custom
Returns a new instance of Custom.
26 27 28 29 30 |
# File 'lib/timber/contexts/custom.rb', line 26 def initialize(attributes) normalizer = Util::AttributeNormalizer.new(attributes) @type = normalizer.fetch!(:type, :symbol) @data = normalizer.fetch!(:data, :hash) end |