Class: Grade
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Grade
- Defined in:
- app/models/grade.rb
Instance Method Summary collapse
-
#initialize(params) ⇒ Grade
constructor
A new instance of Grade.
Constructor Details
#initialize(params) ⇒ Grade
Returns a new instance of Grade
4 5 6 7 8 |
# File 'app/models/grade.rb', line 4 def initialize(params) super self.Volume_max = (self.Height_max.to_f + self.Width_max.to_f + self.Length_max.to_f).to_s self.Volume_min = (self.Height_min.to_f + self.Width_min.to_f + self.Length_min.to_f).to_s end |