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