lib/models/volume.rb in crop-duster-0.0.13 vs lib/models/volume.rb in crop-duster-0.0.14
- old
+ new
@@ -33,9 +33,11 @@
def set_hourly_rate
self.hourly_rate = if volume_type == "standard"
(0.10 * self.size) / 720
elsif volume_type == "io1"
+ (0.10 * self.size) / 720
+ elsif volume_type == "gp2"
((0.125 * self.size) + (0.10 * self.iops)) / 720
else
raise "Unknown volume_type : #{self.volume_type}"
end
end