Class: Neighbor::Attribute

Inherits:
ActiveRecord::Type::Value
  • Object
show all
Defined in:
lib/neighbor/attribute.rb

Instance Method Summary collapse

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