Class: Hyrax::Test::SimpleWork

Inherits:
Work
  • Object
show all
Defined in:
lib/hyrax/specs/shared_specs/simple_work.rb

Overview

A generic PCDM Work, with only Hyrax “core” (required) metadata.

Examples:

building with FactoryBot

work = FactoryBot.build(:hyrax_work, :public, title: ['Comet in Moominland'])

creating with FactoryBot

work = FactoryBot.valkyrie_create(:hyrax_work, :public, title: ['Comet in Moominland'])

Method Summary

Methods inherited from Work

pcdm_object?

Methods inherited from Resource

#==, acts_as_flexible_resource, collection?, #collection?, file?, #file?, #file_set?, file_set?, #flexible?, flexible?, human_readable_type, inherited, pcdm_collection?, #pcdm_collection?, pcdm_object?, #pcdm_object?, #permission_manager, to_rdf_representation, #to_rdf_representation, #visibility, #visibility=, #wings?, work?, #work?

Methods included from WithEmbargoesAndLeases

#embargo, #embargo=, #lease, #lease=

Methods included from WithEvents

#event_class, #events, #log_event, #stream