Module: Hyrax::FileSetBehavior

Extended by:
ActiveSupport::Concern
Includes:
GlobalID::Identification, Hydra::AccessControls::Embargoable, Hydra::WithDepositor, Hydra::Works::FileSetBehavior, Hydra::Works::VirusCheck, BasicMetadata, Hyrax::FileSet::BelongsToWorks, Hyrax::FileSet::Characterization, Hyrax::FileSet::Derivatives, Hyrax::FileSet::Indexing, Hyrax::FileSet::Querying, HumanReadableType, Naming, Noid, Permissions, RequiredMetadata, 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, #remove_representative_relationship

Methods included from Permissions::Readable

#private?, #public?, #registered?

Methods included from Permissions::Writable

#paranoid_permissions

Methods included from Noid

#assign_id, #to_param

Methods included from Serializers

#to_s

Methods included from WithEvents

#event_class, #event_store, #events, #log_event, #stream

Instance Method Details

#representative_idObject



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

def representative_id
  to_param
end

#thumbnail_idObject



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

def thumbnail_id
  to_param
end

#to_presenterObject

Cast to a SolrDocument by querying from Solr



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

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