Class: Ryac::Pipeline::CompressionStats

Inherits:
Data
  • Object
show all
Defined in:
lib/ryac/pipeline/data_types.rb,
sig/ryac/pipeline/data_types.rbs

Overview

Compression statistics for the final output

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#compression_ratio ⇒ Object (readonly)

Returns the value of attribute compression_ratio

Returns:

  • (Object) —

    the current value of compression_ratio



141
142
143
# File 'lib/ryac/pipeline/data_types.rb', line 141

def compression_ratio
  @compression_ratio
end

#file_count ⇒ Object (readonly)

Returns the value of attribute file_count

Returns:

  • (Object) —

    the current value of file_count



141
142
143
# File 'lib/ryac/pipeline/data_types.rb', line 141

def file_count
  @file_count
end

#minified_size ⇒ Object (readonly)

Returns the value of attribute minified_size

Returns:

  • (Object) —

    the current value of minified_size



141
142
143
# File 'lib/ryac/pipeline/data_types.rb', line 141

def minified_size
  @minified_size
end

#original_size ⇒ Object (readonly)

Returns the value of attribute original_size

Returns:

  • (Object) —

    the current value of original_size



141
142
143
# File 'lib/ryac/pipeline/data_types.rb', line 141

def original_size
  @original_size
end

Class Method Details

.new ⇒ CompressionStats

Parameters:

  • original_size: (Integer)
  • minified_size: (Integer)
  • compression_ratio: (Float)
  • file_count: (Integer)

Returns:



131
# File 'sig/ryac/pipeline/data_types.rbs', line 131

def self.new: (original_size: Integer, minified_size: Integer, compression_ratio: Float, file_count: Integer) -> CompressionStats