Class: Lumberjack::RemapAttribute
- Inherits:
-
Object
- Object
- Lumberjack::RemapAttribute
- Defined in:
- lib/lumberjack/remap_attribute.rb
Overview
This class can be used as a return value from an AttributeFormatter to indicate that the value should be remapped to a new attribute name.
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
-
#initialize(remapped_attributes) ⇒ RemapAttribute
constructor
A new instance of RemapAttribute.
Constructor Details
#initialize(remapped_attributes) ⇒ RemapAttribute
20 21 22 |
# File 'lib/lumberjack/remap_attribute.rb', line 20 def initialize(remapped_attributes) @attributes = Lumberjack::Utils.flatten_attributes(remapped_attributes) end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
17 18 19 |
# File 'lib/lumberjack/remap_attribute.rb', line 17 def attributes @attributes end |