Module: Clearbit::Enrichment
- Extended by:
- Enrichment
- Included in:
- Enrichment
- Defined in:
- lib/clearbit/enrichment.rb,
lib/clearbit/enrichment/news.rb,
lib/clearbit/enrichment/person.rb,
lib/clearbit/enrichment/company.rb,
lib/clearbit/enrichment/person_company.rb
Defined Under Namespace
Classes: Company, News, Person, PersonCompany
Instance Method Summary collapse
Instance Method Details
#find(values) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/clearbit/enrichment.rb', line 8 def find(values) if values.key?(:domain) result = Company.find(values) if result && result.pending? Pending.new else PersonCompany.new(company: result) end else PersonCompany.find(values) end end |