Sha256: af9dddb6b2dc931a88c81050159dc494f1d8cd3cced52e2bc2217dec61126a3d

Contents?: true

Size: 418 Bytes

Versions: 8

Compression:

Stored size: 418 Bytes

Contents

require_dependency "renalware/pd"

module Renalware
  module PD
    module APD
      class NonTidalRegimeCalculations < RegimeCalculations

        def calculated_overnight_volume
          return INCALCULABLE unless volume_calculable?
          fill_volume * cycles
        end

        private

        def volume_calculable?
          fill_volume.to_i > 0 && cycles.to_i > 0
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta11 app/models/renalware/pd/apd/non_tidal_regime_calculations.rb
renalware-core-2.0.0.pre.beta10 app/models/renalware/pd/apd/non_tidal_regime_calculations.rb
renalware-core-2.0.0.pre.beta9 app/models/renalware/pd/apd/non_tidal_regime_calculations.rb
renalware-core-2.0.0.pre.beta8 app/models/renalware/pd/apd/non_tidal_regime_calculations.rb
renalware-core-2.0.0.pre.beta7 app/models/renalware/pd/apd/non_tidal_regime_calculations.rb
renalware-core-2.0.0.pre.beta6 app/models/renalware/pd/apd/non_tidal_regime_calculations.rb
renalware-core-2.0.0.pre.beta5 app/models/renalware/pd/apd/non_tidal_regime_calculations.rb
renalware-core-2.0.0.pre.beta4 app/models/renalware/pd/apd/non_tidal_regime_calculations.rb