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



267
268
269
# File 'lib/tree_haver/contracts.rb', line 267

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



267
268
269
# File 'lib/tree_haver/contracts.rb', line 267

def compressed_size
  @compressed_size
end

#compressionObject

Returns the value of attribute compression

Returns:

  • (Object)

    the current value of compression



267
268
269
# File 'lib/tree_haver/contracts.rb', line 267

def compression
  @compression
end

#crc32Object

Returns the value of attribute crc32

Returns:

  • (Object)

    the current value of crc32



267
268
269
# File 'lib/tree_haver/contracts.rb', line 267

def crc32
  @crc32
end

#data_rangeObject

Returns the value of attribute data_range

Returns:

  • (Object)

    the current value of data_range



267
268
269
# File 'lib/tree_haver/contracts.rb', line 267

def data_range
  @data_range
end

#directoryObject

Returns the value of attribute directory

Returns:

  • (Object)

    the current value of directory



267
268
269
# File 'lib/tree_haver/contracts.rb', line 267

def directory
  @directory
end

#local_header_rangeObject

Returns the value of attribute local_header_range

Returns:

  • (Object)

    the current value of local_header_range



267
268
269
# File 'lib/tree_haver/contracts.rb', line 267

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



267
268
269
# File 'lib/tree_haver/contracts.rb', line 267

def normalized_path
  @normalized_path
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



267
268
269
# File 'lib/tree_haver/contracts.rb', line 267

def path
  @path
end

#uncompressed_sizeObject

Returns the value of attribute uncompressed_size

Returns:

  • (Object)

    the current value of uncompressed_size



267
268
269
# File 'lib/tree_haver/contracts.rb', line 267

def uncompressed_size
  @uncompressed_size
end

Instance Method Details

#to_hObject



268
269
270
271
272
273
274
275
276
277
278
279
280
281
# File 'lib/tree_haver/contracts.rb', line 268

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