Class: SolrDocument

Inherits:
Object
  • Object
show all
Includes:
Blacklight::Solr::Document, Hydra::Collections::SolrDocumentBehavior
Defined in:
app/models/solr_document.rb

Instance Method Summary collapse

Methods included from Hydra::Collections::SolrDocumentBehavior

#description, #title, #title_or_label

Instance Method Details

#hydra_modelObject

Method to return the ActiveFedora model



9
10
11
# File 'app/models/solr_document.rb', line 9

def hydra_model
  Array(self[Solrizer.solr_name('active_fedora_model', Solrizer::Descriptor.new(:string, :stored, :indexed))]).first
end