Sha256: bd7e86cd64eccc62b33daa611e29610cd1d6ad4c59bca0ead03a3cc758dcd3ea

Contents?: true

Size: 490 Bytes

Versions: 3

Compression:

Stored size: 490 Bytes

Contents

require 'active_fedora'

module EemModel

  class Part < ActiveFedora::Base
  
    has_relationship "parents", :is_part_of #relationship between content file and parent Eem
  
    has_metadata :name => 'properties', :type => ActiveFedora::MetadataDatastream do |m|
      m.label = "properties"
      m.field "url", :string
      m.field "done", :string
      m.field "content_file_id", :string
      m.field "filename", :string
      m.field "download_date", :string
    end
  
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
eem_model-0.9.1 lib/eem_model/part.rb
eem_model-0.9.0 lib/eem_model/part.rb
eem_model-0.0.3 lib/eem_model/part.rb