Class: SdrClient::Deposit::FileMetadataBuilderOperations::SHA1

Inherits:
Object
  • Object
show all
Defined in:
lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb

Overview

SHA1 for this file.

Constant Summary collapse

NAME =
'sha1'

Class Method Summary collapse

Class Method Details

.for(file_path:) ⇒ Object



11
12
13
# File 'lib/sdr_client/deposit/file_metadata_builder_operations/sha1.rb', line 11

def self.for(file_path:, **)
  Digest::SHA1.file(file_path).hexdigest
end