Class: Aruba::Platforms::DiskUsageCalculator

Inherits:
Object
  • Object
show all
Defined in:
lib/aruba/platforms/disk_usage_calculator.rb

Overview

Calculate disk usage

Instance Method Summary collapse

Instance Method Details

#call(blocks, block_size) ⇒ Object

Calc

Parameters:

  • blocks (Integer)

    Count of blocks

  • block_size (Integer)

    The size of a single block


15
16
17
# File 'lib/aruba/platforms/disk_usage_calculator.rb', line 15

def call(blocks, block_size)
  Aruba::FileSize.new(blocks * block_size)
end