Sha256: ea7c4c7001f98fa65c42612dc2c08255cadbc6e483155ea36fb8c8b04485f1eb
Contents?: true
Size: 920 Bytes
Versions: 2
Compression:
Stored size: 920 Bytes
Contents
# frozen_string_literal: true module Hyrax ## # Valkyrie model for `Work` domain objects in the Hydra Works model. # # @see https://wiki.lyrasis.org/display/samvera/Hydra::Works+Shared+Modeling class Work < Hyrax::Resource include Hyrax::Schema(:core_metadata) attribute :admin_set_id, Valkyrie::Types::ID attribute :member_ids, Valkyrie::Types::Array.of(Valkyrie::Types::ID).meta(ordered: true) attribute :member_of_collection_ids, Valkyrie::Types::Set.of(Valkyrie::Types::ID) attribute :on_behalf_of, Valkyrie::Types::String attribute :proxy_depositor, Valkyrie::Types::String attribute :state, Valkyrie::Types::URI.default(Hyrax::ResourceStatus::ACTIVE) ## # @return [Boolean] true def pcdm_object? true end ## # @return [Boolean] true def work? true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hyrax-3.0.0.pre.rc4 | app/models/hyrax/work.rb |
hyrax-3.0.0.pre.rc3 | app/models/hyrax/work.rb |