lib/lite/measurements/digital_storage.rb in lite-measurements-1.0.2 vs lib/lite/measurements/digital_storage.rb in lite-measurements-1.1.0

- old
+ new

@@ -4,10 +4,10 @@ module Measurements class DigitalStorage < Lite::Measurements::Base include Lite::Measurements::Helpers::ShiftHelper - DIGITAL_STORAGE_UNITS ||= { + DIGITAL_STORAGE_UNITS = { bytes: 1.0, kilobytes: 1024.0, megabytes: 1024.0**2, gigabytes: 1024.0**3, terabytes: 1024.0**4, petabytes: 1024.05**5, exabytes: 1024**6 }.freeze def convert(from:, to:)