Class: Omnizip::Formats::SevenZip::SplitArchiveWriter::VolumeInfo
- Inherits:
-
Object
- Object
- Omnizip::Formats::SevenZip::SplitArchiveWriter::VolumeInfo
- Defined in:
- lib/omnizip/formats/seven_zip/split_archive_writer.rb
Overview
Volume information
Instance Attribute Summary collapse
-
#end_offset ⇒ Object
Returns the value of attribute end_offset.
-
#path ⇒ Object
Returns the value of attribute path.
-
#size ⇒ Object
Returns the value of attribute size.
-
#start_offset ⇒ Object
Returns the value of attribute start_offset.
Instance Method Summary collapse
-
#initialize(path, start_offset = 0) ⇒ VolumeInfo
constructor
A new instance of VolumeInfo.
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_offset ⇒ Object
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 |
#path ⇒ Object
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 |
#size ⇒ Object
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_offset ⇒ Object
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 |