Class: SevenZipRuby::ArchiveInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/seven_zip_ruby/archive_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_sizeObject (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

#methodObject (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_blocksObject (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_sizeObject (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

#inspectObject



17
18
19
# File 'lib/seven_zip_ruby/archive_info.rb', line 17

def inspect
  "#<ArchiveInfo: #{method}, #{size}byte>"
end

#solid?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/seven_zip_ruby/archive_info.rb', line 13

def solid?
  return @solid
end