Class: Ronin::Support::Archive::Zip::Reader::Statistics
- Inherits:
-
Object
- Object
- Ronin::Support::Archive::Zip::Reader::Statistics
- Defined in:
- lib/ronin/support/archive/zip/reader/statistics.rb
Overview
Represents the overall statistics for the zip archive.
Instance Attribute Summary collapse
-
#compression ⇒ Integer
readonly
The total compression ratio of the zip archive.
-
#files ⇒ Integer
readonly
The total number of files in the zip archive.
-
#length ⇒ Integer
readonly
The total zip archive length.
-
#size ⇒ Integer
readonly
The total zip archive size.
Instance Method Summary collapse
-
#initialize(length:, size:, compression:, files:) ⇒ Statistics
constructor
private
Initializes the statistics object.
Constructor Details
#initialize(length:, size:, compression:, files:) ⇒ Statistics
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initializes the statistics object.
64 65 66 67 68 69 |
# File 'lib/ronin/support/archive/zip/reader/statistics.rb', line 64 def initialize(length: , size: , compression: , files: ) @length = length @size = size @compression = compression @files = files end |
Instance Attribute Details
#compression ⇒ Integer (readonly)
The total compression ratio of the zip archive.
44 45 46 |
# File 'lib/ronin/support/archive/zip/reader/statistics.rb', line 44 def compression @compression end |
#files ⇒ Integer (readonly)
The total number of files in the zip archive.
49 50 51 |
# File 'lib/ronin/support/archive/zip/reader/statistics.rb', line 49 def files @files end |
#length ⇒ Integer (readonly)
The total zip archive length.
34 35 36 |
# File 'lib/ronin/support/archive/zip/reader/statistics.rb', line 34 def length @length end |
#size ⇒ Integer (readonly)
The total zip archive size.
39 40 41 |
# File 'lib/ronin/support/archive/zip/reader/statistics.rb', line 39 def size @size end |