Class: Hyrax::PcdmCollection

Inherits:
Resource
  • Object
show all
Defined in:
app/models/hyrax/pcdm_collection.rb

Overview

Valkyrie model for Collection domain objects in the Hydra Works model.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Resource

#file?, #file_set?, human_readable_type, #permission_manager, #visibility, #visibility=, #work?

Methods included from WithEvents

#event_class, #events, #log_event, #stream

Class Method Details

._hyrax_default_name_classClass

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns an ActiveModel::Name compatible class.

Returns:

  • (Class)

    an ActiveModel::Name compatible class


19
20
21
# File 'app/models/hyrax/pcdm_collection.rb', line 19

def self._hyrax_default_name_class
  Hyrax::CollectionName
end

Instance Method Details

#collection?Boolean

Returns true.

Returns:

  • (Boolean)

    true


25
26
27
# File 'app/models/hyrax/pcdm_collection.rb', line 25

def collection?
  true
end

#pcdm_object?Boolean

Returns true.

Returns:

  • (Boolean)

    true


31
32
33
# File 'app/models/hyrax/pcdm_collection.rb', line 31

def pcdm_object?
  true
end