Class: Tartarus::RemoteStorage::Glacier::File
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Tartarus::RemoteStorage::Glacier::File
- Defined in:
- lib/tartarus/remote_storage/glacier/file.rb
Instance Method Summary collapse
Instance Method Details
#body ⇒ Object
11 12 13 |
# File 'lib/tartarus/remote_storage/glacier/file.rb', line 11 def body self end |
#checksum ⇒ Object
15 16 17 |
# File 'lib/tartarus/remote_storage/glacier/file.rb', line 15 def checksum Digest::SHA256.file(path) end |
#delete_from_local_storage ⇒ Object
19 20 21 |
# File 'lib/tartarus/remote_storage/glacier/file.rb', line 19 def delete_from_local_storage file_service.delete(path) end |
#description ⇒ Object
7 8 9 |
# File 'lib/tartarus/remote_storage/glacier/file.rb', line 7 def description file_service.basename(self, ".*") end |