Class: Ddr::Models::AttachedFileProfile

Inherits:
SimpleDelegator
  • Object
show all
Includes:
ActiveModel::Serializers::JSON
Defined in:
lib/ddr/models/attached_file_profile.rb

Instance Method Summary collapse

Instance Method Details

#attributesObject



7
8
9
# File 'lib/ddr/models/attached_file_profile.rb', line 7

def attributes
  { "size"=>nil, "mime_type"=>nil, "sha1"=>nil }
end

#sha1Object



11
12
13
# File 'lib/ddr/models/attached_file_profile.rb', line 11

def sha1
  checksum.value
end