Sha256: c462b433a4879b2051d7a9d7cb8f5f1ab740bf61917620762aef20a4f160fbb3
Contents?: true
Size: 1.02 KB
Versions: 4
Compression:
Stored size: 1.02 KB
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) attribute :representative_id, Valkyrie::Types::ID attribute :thumbnail_id, Valkyrie::Types::ID ## # @return [Boolean] true def pcdm_object? true end ## # @return [Boolean] true def work? true end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hyrax-3.1.0 | app/models/hyrax/work.rb |
hyrax-3.0.2 | app/models/hyrax/work.rb |
hyrax-3.0.1 | app/models/hyrax/work.rb |
hyrax-3.0.0 | app/models/hyrax/work.rb |