Class: Grade

Inherits:
ApplicationRecord show all
Defined in:
app/models/grade.rb

Instance Method Summary collapse

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