Class: Omnizip::Formats::Rar3::Entry
- Inherits:
-
Object
- Object
- Omnizip::Formats::Rar3::Entry
- Defined in:
- lib/omnizip/formats/rar3/reader.rb
Overview
RAR archive entry model
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#compressed_size ⇒ Object
Returns the value of attribute compressed_size.
-
#compression_method ⇒ Object
Returns the value of attribute compression_method.
-
#crc32 ⇒ Object
Returns the value of attribute crc32.
-
#data_offset ⇒ Object
Returns the value of attribute data_offset.
-
#encrypted ⇒ Object
Returns the value of attribute encrypted.
-
#host_os ⇒ Object
Returns the value of attribute host_os.
-
#modified_time ⇒ Object
Returns the value of attribute modified_time.
-
#name ⇒ Object
Returns the value of attribute name.
-
#salt ⇒ Object
Returns the value of attribute salt.
-
#uncompressed_size ⇒ Object
Returns the value of attribute uncompressed_size.
Instance Method Summary collapse
-
#initialize(name: nil, compressed_size: nil, uncompressed_size: nil, crc32: nil, compression_method: nil, modified_time: nil, attributes: nil, encrypted: nil, data_offset: nil, host_os: nil, salt: nil) ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize(name: nil, compressed_size: nil, uncompressed_size: nil, crc32: nil, compression_method: nil, modified_time: nil, attributes: nil, encrypted: nil, data_offset: nil, host_os: nil, salt: nil) ⇒ Entry
Returns a new instance of Entry.
368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 |
# File 'lib/omnizip/formats/rar3/reader.rb', line 368 def initialize(name: nil, compressed_size: nil, uncompressed_size: nil, crc32: nil, compression_method: nil, modified_time: nil, attributes: nil, encrypted: nil, data_offset: nil, host_os: nil, salt: nil) @name = name @compressed_size = compressed_size @uncompressed_size = uncompressed_size @crc32 = crc32 @compression_method = compression_method @modified_time = modified_time @attributes = attributes @encrypted = encrypted @data_offset = data_offset @host_os = host_os @salt = salt end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
364 365 366 |
# File 'lib/omnizip/formats/rar3/reader.rb', line 364 def attributes @attributes end |
#compressed_size ⇒ Object
Returns the value of attribute compressed_size.
364 365 366 |
# File 'lib/omnizip/formats/rar3/reader.rb', line 364 def compressed_size @compressed_size end |
#compression_method ⇒ Object
Returns the value of attribute compression_method.
364 365 366 |
# File 'lib/omnizip/formats/rar3/reader.rb', line 364 def compression_method @compression_method end |
#crc32 ⇒ Object
Returns the value of attribute crc32.
364 365 366 |
# File 'lib/omnizip/formats/rar3/reader.rb', line 364 def crc32 @crc32 end |
#data_offset ⇒ Object
Returns the value of attribute data_offset.
364 365 366 |
# File 'lib/omnizip/formats/rar3/reader.rb', line 364 def data_offset @data_offset end |
#encrypted ⇒ Object
Returns the value of attribute encrypted.
364 365 366 |
# File 'lib/omnizip/formats/rar3/reader.rb', line 364 def encrypted @encrypted end |
#host_os ⇒ Object
Returns the value of attribute host_os.
364 365 366 |
# File 'lib/omnizip/formats/rar3/reader.rb', line 364 def host_os @host_os end |
#modified_time ⇒ Object
Returns the value of attribute modified_time.
364 365 366 |
# File 'lib/omnizip/formats/rar3/reader.rb', line 364 def modified_time @modified_time end |
#name ⇒ Object
Returns the value of attribute name.
364 365 366 |
# File 'lib/omnizip/formats/rar3/reader.rb', line 364 def name @name end |
#salt ⇒ Object
Returns the value of attribute salt.
364 365 366 |
# File 'lib/omnizip/formats/rar3/reader.rb', line 364 def salt @salt end |
#uncompressed_size ⇒ Object
Returns the value of attribute uncompressed_size.
364 365 366 |
# File 'lib/omnizip/formats/rar3/reader.rb', line 364 def uncompressed_size @uncompressed_size end |