Class: Neighbor::NormalizedAttribute
- Inherits:
-
ActiveRecord::Type::Value
- Object
- ActiveRecord::Type::Value
- Neighbor::NormalizedAttribute
- Defined in:
- lib/neighbor/normalized_attribute.rb
Instance Method Summary collapse
- #cast ⇒ Object
-
#initialize(cast_type:, model:, attribute_name:) ⇒ NormalizedAttribute
constructor
A new instance of NormalizedAttribute.
Constructor Details
#initialize(cast_type:, model:, attribute_name:) ⇒ NormalizedAttribute
Returns a new instance of NormalizedAttribute.
5 6 7 8 9 |
# File 'lib/neighbor/normalized_attribute.rb', line 5 def initialize(cast_type:, model:, attribute_name:) @cast_type = cast_type @model = model @attribute_name = attribute_name.to_s end |