Class: SdrClient::Deposit::FileMetadataBuilderOperations::MD5
- Inherits:
-
Object
- Object
- SdrClient::Deposit::FileMetadataBuilderOperations::MD5
- Defined in:
- lib/sdr_client/deposit/file_metadata_builder_operations/md5.rb
Overview
MD5 for this file.
Constant Summary collapse
- NAME =
'md5'
Class Method Summary collapse
Class Method Details
.for(file_path:) ⇒ Object
11 12 13 |
# File 'lib/sdr_client/deposit/file_metadata_builder_operations/md5.rb', line 11 def self.for(file_path:, **) Digest::MD5.file(file_path).hexdigest end |