Class: ArchiveStorage::Adapters::Metadata
- Inherits:
-
Struct
- Object
- Struct
- ArchiveStorage::Adapters::Metadata
- Defined in:
- lib/archive_storage/adapters/metadata.rb
Instance Attribute Summary collapse
-
#byte_size ⇒ Object
Returns the value of attribute byte_size.
-
#checksum ⇒ Object
Returns the value of attribute checksum.
-
#checksum_algorithm ⇒ Object
Returns the value of attribute checksum_algorithm.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#etag ⇒ Object
Returns the value of attribute etag.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
Instance Method Summary collapse
Instance Attribute Details
#byte_size ⇒ Object
Returns the value of attribute byte_size
5 6 7 |
# File 'lib/archive_storage/adapters/metadata.rb', line 5 def byte_size @byte_size end |
#checksum ⇒ Object
Returns the value of attribute checksum
5 6 7 |
# File 'lib/archive_storage/adapters/metadata.rb', line 5 def checksum @checksum end |
#checksum_algorithm ⇒ Object
Returns the value of attribute checksum_algorithm
5 6 7 |
# File 'lib/archive_storage/adapters/metadata.rb', line 5 def checksum_algorithm @checksum_algorithm end |
#content_type ⇒ Object
Returns the value of attribute content_type
5 6 7 |
# File 'lib/archive_storage/adapters/metadata.rb', line 5 def content_type @content_type end |
#etag ⇒ Object
Returns the value of attribute etag
5 6 7 |
# File 'lib/archive_storage/adapters/metadata.rb', line 5 def etag @etag end |
#metadata ⇒ Object
Returns the value of attribute metadata
5 6 7 |
# File 'lib/archive_storage/adapters/metadata.rb', line 5 def @metadata end |
Instance Method Details
#multipart_etag? ⇒ Boolean
14 15 16 |
# File 'lib/archive_storage/adapters/metadata.rb', line 14 def multipart_etag? etag.to_s.include?("-") end |
#safe_etag? ⇒ Boolean
18 19 20 |
# File 'lib/archive_storage/adapters/metadata.rb', line 18 def safe_etag? etag && !multipart_etag? end |