Class: Omnizip::Formats::Rar5::Entry
- Inherits:
-
Object
- Object
- Omnizip::Formats::Rar5::Entry
- Includes:
- Entry
- Defined in:
- lib/omnizip/formats/rar5/reader.rb
Overview
RAR v5 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.
-
#is_directory ⇒ Object
Returns the value of attribute is_directory.
-
#modified_time ⇒ Object
Returns the value of attribute modified_time.
-
#name ⇒ Object
Returns the value of attribute name.
-
#uncompressed_size ⇒ Object
Returns the value of attribute uncompressed_size.
Instance Method Summary collapse
- #entry_directory? ⇒ Boolean
- #entry_mtime ⇒ Object
- #entry_name ⇒ Object
- #entry_size ⇒ Object
-
#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, is_directory: 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, is_directory: nil) ⇒ Entry
Returns a new instance of Entry.
330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 330 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, is_directory: 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 @is_directory = is_directory end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
321 322 323 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 321 def attributes @attributes end |
#compressed_size ⇒ Object
Returns the value of attribute compressed_size.
321 322 323 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 321 def compressed_size @compressed_size end |
#compression_method ⇒ Object
Returns the value of attribute compression_method.
321 322 323 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 321 def compression_method @compression_method end |
#crc32 ⇒ Object
Returns the value of attribute crc32.
321 322 323 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 321 def crc32 @crc32 end |
#data_offset ⇒ Object
Returns the value of attribute data_offset.
321 322 323 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 321 def data_offset @data_offset end |
#encrypted ⇒ Object
Returns the value of attribute encrypted.
321 322 323 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 321 def encrypted @encrypted end |
#host_os ⇒ Object
Returns the value of attribute host_os.
321 322 323 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 321 def host_os @host_os end |
#is_directory ⇒ Object
Returns the value of attribute is_directory.
321 322 323 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 321 def is_directory @is_directory end |
#modified_time ⇒ Object
Returns the value of attribute modified_time.
321 322 323 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 321 def modified_time @modified_time end |
#name ⇒ Object
Returns the value of attribute name.
321 322 323 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 321 def name @name end |
#uncompressed_size ⇒ Object
Returns the value of attribute uncompressed_size.
321 322 323 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 321 def uncompressed_size @uncompressed_size end |
Instance Method Details
#entry_directory? ⇒ Boolean
326 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 326 def entry_directory? = is_directory |
#entry_mtime ⇒ Object
328 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 328 def entry_mtime = modified_time |
#entry_name ⇒ Object
325 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 325 def entry_name = name |
#entry_size ⇒ Object
327 |
# File 'lib/omnizip/formats/rar5/reader.rb', line 327 def entry_size = uncompressed_size |