Class: SevenZipRuby::ArchiveInfo
- Inherits:
-
Object
- Object
- SevenZipRuby::ArchiveInfo
- Defined in:
- lib/seven_zip_ruby/archive_info.rb
Instance Attribute Summary collapse
-
#header_size ⇒ Object
readonly
Returns the value of attribute header_size.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#num_blocks ⇒ Object
(also: #block_num)
readonly
Returns the value of attribute num_blocks.
-
#phy_size ⇒ Object
(also: #size)
readonly
Returns the value of attribute phy_size.
Instance Method Summary collapse
-
#initialize(method, solid, num_blocks, header_size, phy_size) ⇒ ArchiveInfo
constructor
A new instance of ArchiveInfo.
- #inspect ⇒ Object
- #solid? ⇒ Boolean
Constructor Details
#initialize(method, solid, num_blocks, header_size, phy_size) ⇒ ArchiveInfo
Returns a new instance of ArchiveInfo.
3 4 5 6 |
# File 'lib/seven_zip_ruby/archive_info.rb', line 3 def initialize(method, solid, num_blocks, header_size, phy_size) @method, @solid, @num_blocks, @header_size, @phy_size = method, solid, num_blocks, header_size, phy_size end |
Instance Attribute Details
#header_size ⇒ Object (readonly)
Returns the value of attribute header_size.
8 9 10 |
# File 'lib/seven_zip_ruby/archive_info.rb', line 8 def header_size @header_size end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
8 9 10 |
# File 'lib/seven_zip_ruby/archive_info.rb', line 8 def method @method end |
#num_blocks ⇒ Object (readonly) Also known as: block_num
Returns the value of attribute num_blocks.
8 9 10 |
# File 'lib/seven_zip_ruby/archive_info.rb', line 8 def num_blocks @num_blocks end |
#phy_size ⇒ Object (readonly) Also known as: size
Returns the value of attribute phy_size.
8 9 10 |
# File 'lib/seven_zip_ruby/archive_info.rb', line 8 def phy_size @phy_size end |
Instance Method Details
#inspect ⇒ Object
17 18 19 |
# File 'lib/seven_zip_ruby/archive_info.rb', line 17 def inspect "#<ArchiveInfo: #{method}, #{size}byte>" end |
#solid? ⇒ Boolean
13 14 15 |
# File 'lib/seven_zip_ruby/archive_info.rb', line 13 def solid? return @solid end |