Class: Omnizip::Formats::SevenZip::SplitArchiveWriter::VolumeInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/omnizip/formats/seven_zip/split_archive_writer.rb

Overview

Volume information

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, start_offset = 0) ⇒ VolumeInfo

Returns a new instance of VolumeInfo.



17
18
19
20
21
22
# File 'lib/omnizip/formats/seven_zip/split_archive_writer.rb', line 17

def initialize(path, start_offset = 0)
  @path = path
  @size = 0
  @start_offset = start_offset
  @end_offset = start_offset
end

Instance Attribute Details

#end_offsetObject

Returns the value of attribute end_offset.



15
16
17
# File 'lib/omnizip/formats/seven_zip/split_archive_writer.rb', line 15

def end_offset
  @end_offset
end

#pathObject

Returns the value of attribute path.



15
16
17
# File 'lib/omnizip/formats/seven_zip/split_archive_writer.rb', line 15

def path
  @path
end

#sizeObject

Returns the value of attribute size.



15
16
17
# File 'lib/omnizip/formats/seven_zip/split_archive_writer.rb', line 15

def size
  @size
end

#start_offsetObject

Returns the value of attribute start_offset.



15
16
17
# File 'lib/omnizip/formats/seven_zip/split_archive_writer.rb', line 15

def start_offset
  @start_offset
end