Module: Textus::Lanes::Ingest::Dedup
- Defined in:
- lib/textus/lanes/ingest/dedup.rb
Class Method Summary collapse
Class Method Details
.find(lookup, content_hash, url: nil) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/textus/lanes/ingest/dedup.rb', line 7 def find(lookup, content_hash, url: nil) dup = lookup.find_by_hash(content_hash) return dup if dup return nil unless url lookup.find_by_url(url) end |