Module: Hyrax::FileSetBehavior

Extended by:
ActiveSupport::Concern
Includes:
GlobalID::Identification, Hydra::AccessControls::Embargoable, Hydra::WithDepositor, Hydra::Works::FileSetBehavior, Hydra::Works::VirusCheck, BasicMetadata, CoreMetadata, Hyrax::FileSet::BelongsToWorks, Hyrax::FileSet::Characterization, Hyrax::FileSet::Derivatives, Hyrax::FileSet::Indexing, Hyrax::FileSet::Querying, HumanReadableType, Naming, Noid, Permissions, Serializers, WithEvents
Included in:
FileSet
Defined in:
app/models/concerns/hyrax/file_set_behavior.rb

Instance Method Summary collapse

Methods included from HumanReadableType

#human_readable_type, #to_solr

Methods included from Hyrax::FileSet::BelongsToWorks

#parent, #parents, #related_files

Methods included from Permissions::Readable

#private?, #public?, #registered?

Methods included from Permissions::Writable

#paranoid_permissions

Methods included from Noid

#assign_id

Methods included from Serializers

#to_s

Methods included from WithEvents

#event_class, #events, #log_event, #stream

Instance Method Details

#representative_idObject



27
28
29
# File 'app/models/concerns/hyrax/file_set_behavior.rb', line 27

def representative_id
  to_param
end

#thumbnail_idObject



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

def thumbnail_id
  to_param
end

#to_presenterObject

Cast to a SolrDocument by querying from Solr



36
37
38
# File 'app/models/concerns/hyrax/file_set_behavior.rb', line 36

def to_presenter
  CatalogController.new.fetch(id).last
end