Class: WhosDatedWho::Client
- Inherits:
-
Object
- Object
- WhosDatedWho::Client
- Defined in:
- lib/whos_dated_who/client.rb
Instance Method Summary collapse
Instance Method Details
#fetch(name) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/whos_dated_who/client.rb', line 3 def fetch(name) bing_results = BingClient.new.search("#{name} site:dating.famousfix.com") url = bing_results.first[:Web].first[:Url] resp = Faraday.get(url) if resp.success? Parser.new.parse(resp.body) end end |