Class: Omnizip::Formats::Rar5::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/omnizip/formats/rar5/reader.rb

Overview

RAR v5 archive entry model

Instance Attribute Summary collapse

Instance Method Summary collapse

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.



323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
# File 'lib/omnizip/formats/rar5/reader.rb', line 323

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

#attributesObject

Returns the value of attribute attributes.



319
320
321
# File 'lib/omnizip/formats/rar5/reader.rb', line 319

def attributes
  @attributes
end

#compressed_sizeObject

Returns the value of attribute compressed_size.



319
320
321
# File 'lib/omnizip/formats/rar5/reader.rb', line 319

def compressed_size
  @compressed_size
end

#compression_methodObject

Returns the value of attribute compression_method.



319
320
321
# File 'lib/omnizip/formats/rar5/reader.rb', line 319

def compression_method
  @compression_method
end

#crc32Object

Returns the value of attribute crc32.



319
320
321
# File 'lib/omnizip/formats/rar5/reader.rb', line 319

def crc32
  @crc32
end

#data_offsetObject

Returns the value of attribute data_offset.



319
320
321
# File 'lib/omnizip/formats/rar5/reader.rb', line 319

def data_offset
  @data_offset
end

#encryptedObject

Returns the value of attribute encrypted.



319
320
321
# File 'lib/omnizip/formats/rar5/reader.rb', line 319

def encrypted
  @encrypted
end

#host_osObject

Returns the value of attribute host_os.



319
320
321
# File 'lib/omnizip/formats/rar5/reader.rb', line 319

def host_os
  @host_os
end

#is_directoryObject

Returns the value of attribute is_directory.



319
320
321
# File 'lib/omnizip/formats/rar5/reader.rb', line 319

def is_directory
  @is_directory
end

#modified_timeObject

Returns the value of attribute modified_time.



319
320
321
# File 'lib/omnizip/formats/rar5/reader.rb', line 319

def modified_time
  @modified_time
end

#nameObject

Returns the value of attribute name.



319
320
321
# File 'lib/omnizip/formats/rar5/reader.rb', line 319

def name
  @name
end

#uncompressed_sizeObject

Returns the value of attribute uncompressed_size.



319
320
321
# File 'lib/omnizip/formats/rar5/reader.rb', line 319

def uncompressed_size
  @uncompressed_size
end