Class: Blacklight::Allmaps::Sidecar
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Blacklight::Allmaps::Sidecar
- Defined in:
- app/models/blacklight/allmaps/sidecar.rb
Instance Method Summary collapse
Instance Method Details
#set_allmaps_id ⇒ Object
18 19 20 |
# File 'app/models/blacklight/allmaps/sidecar.rb', line 18 def set_allmaps_id self.allmaps_id = Digest::SHA1.hexdigest(manifest_id)[0..15] if manifest_id.present? end |
#solr_document ⇒ Object
14 15 16 |
# File 'app/models/blacklight/allmaps/sidecar.rb', line 14 def solr_document document_type.constantize.find(solr_document_id) end |