Class: Files::ZipListEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/files.com/models/zip_list_entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}, options = {}) ⇒ ZipListEntry

Returns a new instance of ZipListEntry.



7
8
9
10
# File 'lib/files.com/models/zip_list_entry.rb', line 7

def initialize(attributes = {}, options = {})
  @attributes = attributes || {}
  @options = options || {}
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



5
6
7
# File 'lib/files.com/models/zip_list_entry.rb', line 5

def attributes
  @attributes
end

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/files.com/models/zip_list_entry.rb', line 5

def options
  @options
end

Instance Method Details

#pathObject

string - Entry path inside the ZIP. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.



13
14
15
# File 'lib/files.com/models/zip_list_entry.rb', line 13

def path
  @attributes[:path]
end

#sizeObject

int64 - Uncompressed size in bytes.



18
19
20
# File 'lib/files.com/models/zip_list_entry.rb', line 18

def size
  @attributes[:size]
end