Class: TreeHaver::ZipArchiveEntry
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::ZipArchiveEntry
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#central_directory_range ⇒ Object
Returns the value of attribute central_directory_range.
-
#compressed_size ⇒ Object
Returns the value of attribute compressed_size.
-
#compression ⇒ Object
Returns the value of attribute compression.
-
#crc32 ⇒ Object
Returns the value of attribute crc32.
-
#data_range ⇒ Object
Returns the value of attribute data_range.
-
#directory ⇒ Object
Returns the value of attribute directory.
-
#local_header_range ⇒ Object
Returns the value of attribute local_header_range.
-
#normalized_path ⇒ Object
Returns the value of attribute normalized_path.
-
#path ⇒ Object
Returns the value of attribute path.
-
#uncompressed_size ⇒ Object
Returns the value of attribute uncompressed_size.
Instance Method Summary collapse
Instance Attribute Details
#central_directory_range ⇒ Object
Returns the value of attribute central_directory_range
267 268 269 |
# File 'lib/tree_haver/contracts.rb', line 267 def central_directory_range @central_directory_range end |
#compressed_size ⇒ Object
Returns the value of attribute compressed_size
267 268 269 |
# File 'lib/tree_haver/contracts.rb', line 267 def compressed_size @compressed_size end |
#compression ⇒ Object
Returns the value of attribute compression
267 268 269 |
# File 'lib/tree_haver/contracts.rb', line 267 def compression @compression end |
#crc32 ⇒ Object
Returns the value of attribute crc32
267 268 269 |
# File 'lib/tree_haver/contracts.rb', line 267 def crc32 @crc32 end |
#data_range ⇒ Object
Returns the value of attribute data_range
267 268 269 |
# File 'lib/tree_haver/contracts.rb', line 267 def data_range @data_range end |
#directory ⇒ Object
Returns the value of attribute directory
267 268 269 |
# File 'lib/tree_haver/contracts.rb', line 267 def directory @directory end |
#local_header_range ⇒ Object
Returns the value of attribute local_header_range
267 268 269 |
# File 'lib/tree_haver/contracts.rb', line 267 def local_header_range @local_header_range end |
#normalized_path ⇒ Object
Returns the value of attribute normalized_path
267 268 269 |
# File 'lib/tree_haver/contracts.rb', line 267 def normalized_path @normalized_path end |
#path ⇒ Object
Returns the value of attribute path
267 268 269 |
# File 'lib/tree_haver/contracts.rb', line 267 def path @path end |
#uncompressed_size ⇒ Object
Returns the value of attribute uncompressed_size
267 268 269 |
# File 'lib/tree_haver/contracts.rb', line 267 def uncompressed_size @uncompressed_size end |
Instance Method Details
#to_h ⇒ Object
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 |