Sha256: 7011818d6c0610c6185f60c1fe8026c2c839306acd922781646434713ec2ee7a

Contents?: true

Size: 402 Bytes

Versions: 29

Compression:

Stored size: 402 Bytes

Contents

require 'aruba/file_size'

# Aruba
module Aruba
  # Platforms
  module Platforms
    # Calculate disk usage
    class DiskUsageCalculator
      # Calc
      #
      # @param [Integer] blocks
      #   Count of blocks
      # @param [Integer] block_size
      #   The size of a single block
      def call(blocks, block_size)
        Aruba::FileSize.new(blocks * block_size)
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
aruba-0.14.14 lib/aruba/platforms/disk_usage_calculator.rb
aruba-0.14.13 lib/aruba/platforms/disk_usage_calculator.rb
aruba-1.0.0.pre.alpha.5 lib/aruba/platforms/disk_usage_calculator.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/aruba-0.14.12/lib/aruba/platforms/disk_usage_calculator.rb
aruba-0.14.12 lib/aruba/platforms/disk_usage_calculator.rb
aruba-0.14.11 lib/aruba/platforms/disk_usage_calculator.rb
aruba-0.14.10 lib/aruba/platforms/disk_usage_calculator.rb
aruba-1.0.0.pre.alpha.4 lib/aruba/platforms/disk_usage_calculator.rb
aruba-1.0.0.pre.alpha.3 lib/aruba/platforms/disk_usage_calculator.rb
aruba-0.14.9 lib/aruba/platforms/disk_usage_calculator.rb
aruba-0.14.8 lib/aruba/platforms/disk_usage_calculator.rb
aruba-0.14.7 lib/aruba/platforms/disk_usage_calculator.rb
aruba-0.14.6 lib/aruba/platforms/disk_usage_calculator.rb
aruba-0.14.5 lib/aruba/platforms/disk_usage_calculator.rb
aruba-0.14.4 lib/aruba/platforms/disk_usage_calculator.rb
aruba-0.14.3 lib/aruba/platforms/disk_usage_calculator.rb
aruba-1.0.0.pre.alpha.2 lib/aruba/platforms/disk_usage_calculator.rb
aruba-1.0.0.pre.alpha.1 lib/aruba/platforms/disk_usage_calculator.rb
aruba-win-fix-0.14.2 lib/aruba/platforms/disk_usage_calculator.rb
aruba-0.14.2 lib/aruba/platforms/disk_usage_calculator.rb