Sha256: 4c100552a647ffdf43990e7a056826ad0bd37fd8b3e074b3cd588e32746ea91b

Contents?: true

Size: 263 Bytes

Versions: 11

Compression:

Stored size: 263 Bytes

Contents

require "delegate"

module Ddr::Models
  class AttachedFileProfile < SimpleDelegator
    include ActiveModel::Serializers::JSON

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

    def sha1
      checksum.value
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ddr-models-3.0.8 lib/ddr/models/attached_file_profile.rb
ddr-models-3.0.7 lib/ddr/models/attached_file_profile.rb
ddr-models-3.0.6 lib/ddr/models/attached_file_profile.rb
ddr-models-3.0.5 lib/ddr/models/attached_file_profile.rb
ddr-models-3.0.4 lib/ddr/models/attached_file_profile.rb
ddr-models-3.0.3 lib/ddr/models/attached_file_profile.rb
ddr-models-3.0.2 lib/ddr/models/attached_file_profile.rb
ddr-models-3.0.1 lib/ddr/models/attached_file_profile.rb
ddr-models-3.0.0 lib/ddr/models/attached_file_profile.rb
ddr-models-3.0.0.rc6 lib/ddr/models/attached_file_profile.rb
ddr-models-3.0.0.rc5 lib/ddr/models/attached_file_profile.rb