Class: TreeHaver::ZipArchiveInfo

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



256
257
258
# File 'lib/tree_haver/contracts.rb', line 256

def central_directory_range
  @central_directory_range
end

#entry_countObject

Returns the value of attribute entry_count

Returns:

  • (Object)

    the current value of entry_count



256
257
258
# File 'lib/tree_haver/contracts.rb', line 256

def entry_count
  @entry_count
end

#formatObject

Returns the value of attribute format

Returns:

  • (Object)

    the current value of format



256
257
258
# File 'lib/tree_haver/contracts.rb', line 256

def format
  @format
end

#schemaObject

Returns the value of attribute schema

Returns:

  • (Object)

    the current value of schema



256
257
258
# File 'lib/tree_haver/contracts.rb', line 256

def schema
  @schema
end

Instance Method Details

#to_hObject



257
258
259
260
261
262
263
264
# File 'lib/tree_haver/contracts.rb', line 257

def to_h
  {
    format: format,
    schema: schema,
    entry_count: entry_count,
    central_directory_range: central_directory_range.to_h
  }
end