Class: TreeHaver::ZipArchiveEntry

Inherits:
Struct
  • Object
show all
Defined in:
lib/tree_haver/contracts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#central_directory_rangeObject

Returns the value of attribute central_directory_range

Returns:

  • (Object)

    the current value of central_directory_range



872
873
874
# File 'lib/tree_haver/contracts.rb', line 872

def central_directory_range
  @central_directory_range
end

#compressed_sizeObject

Returns the value of attribute compressed_size

Returns:

  • (Object)

    the current value of compressed_size



872
873
874
# File 'lib/tree_haver/contracts.rb', line 872

def compressed_size
  @compressed_size
end

#compressionObject

Returns the value of attribute compression

Returns:

  • (Object)

    the current value of compression



872
873
874
# File 'lib/tree_haver/contracts.rb', line 872

def compression
  @compression
end

#crc32Object

Returns the value of attribute crc32

Returns:

  • (Object)

    the current value of crc32



872
873
874
# File 'lib/tree_haver/contracts.rb', line 872

def crc32
  @crc32
end

#data_rangeObject

Returns the value of attribute data_range

Returns:

  • (Object)

    the current value of data_range



872
873
874
# File 'lib/tree_haver/contracts.rb', line 872

def data_range
  @data_range
end

#directoryObject

Returns the value of attribute directory

Returns:

  • (Object)

    the current value of directory



872
873
874
# File 'lib/tree_haver/contracts.rb', line 872

def directory
  @directory
end

#local_header_rangeObject

Returns the value of attribute local_header_range

Returns:

  • (Object)

    the current value of local_header_range



872
873
874
# File 'lib/tree_haver/contracts.rb', line 872

def local_header_range
  @local_header_range
end

#normalized_pathObject

Returns the value of attribute normalized_path

Returns:

  • (Object)

    the current value of normalized_path



872
873
874
# File 'lib/tree_haver/contracts.rb', line 872

def normalized_path
  @normalized_path
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



872
873
874
# File 'lib/tree_haver/contracts.rb', line 872

def path
  @path
end

#uncompressed_sizeObject

Returns the value of attribute uncompressed_size

Returns:

  • (Object)

    the current value of uncompressed_size



872
873
874
# File 'lib/tree_haver/contracts.rb', line 872

def uncompressed_size
  @uncompressed_size
end

Instance Method Details

#to_hObject



874
875
876
877
878
879
880
881
882
883
884
885
886
887
# File 'lib/tree_haver/contracts.rb', line 874

def to_h
  {
    path: path,
    normalized_path: normalized_path,
    directory: directory,
    compression: compression,
    compressed_size: compressed_size,
    uncompressed_size: uncompressed_size,
    crc32: crc32,
    local_header_range: local_header_range.to_h,
    data_range: data_range.to_h,
    central_directory_range: central_directory_range.to_h
  }
end