Module: CurationConcerns::FileSet::Querying::ClassMethods

Defined in:
app/models/concerns/curation_concerns/file_set/querying.rb

Instance Method Summary collapse

Instance Method Details

#urnify(digest_string) ⇒ Object



11
12
13
# File 'app/models/concerns/curation_concerns/file_set/querying.rb', line 11

def urnify(digest_string)
  "urn:sha1:#{digest_string}"
end

#where_digest_is(digest_string) ⇒ Object



7
8
9
# File 'app/models/concerns/curation_concerns/file_set/querying.rb', line 7

def where_digest_is(digest_string)
  where Solrizer.solr_name('digest', :symbol) => urnify(digest_string)
end