Class: Omnizip::Archive::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/omnizip/archive.rb

Overview

Metadata record yielded by ReaderSession#entries. The size member intentionally shadows Struct#size: the documented contract is entry size in bytes, not the member count. rubocop:disable-next Lint/StructNewOverride -- documented byte size

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#directoryObject

Returns the value of attribute directory

Returns:

  • (Object)

    the current value of directory



33
34
35
# File 'lib/omnizip/archive.rb', line 33

def directory
  @directory
end

#mtimeObject

Returns the value of attribute mtime

Returns:

  • (Object)

    the current value of mtime



33
34
35
# File 'lib/omnizip/archive.rb', line 33

def mtime
  @mtime
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



33
34
35
# File 'lib/omnizip/archive.rb', line 33

def name
  @name
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



33
34
35
# File 'lib/omnizip/archive.rb', line 33

def size
  @size
end

Instance Method Details

#directory?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/omnizip/archive.rb', line 34

def directory?
  directory
end