Class: Flattener::Base
- Inherits:
-
Object
- Object
- Flattener::Base
- Extended by:
- Flattener
- Includes:
- ActiveModel::MassAssignmentSecurity, ActiveModel::Validations
- Defined in:
- lib/flattener/base.rb
Constant Summary
Constants included from Flattener
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Base
constructor
A new instance of Base.
Methods included from Flattener
Constructor Details
#initialize(attributes = {}) ⇒ Base
Returns a new instance of Base.
9 10 11 12 13 |
# File 'lib/flattener/base.rb', line 9 def initialize attributes = {} sanitize_for_mass_assignment(attributes).each do |key, value| self.send("#{key}=", value) end end |