Sha256: 7da7602cf838364710f620e3e77f103f142c5532e2d051aef1f73feb29d0bd90

Contents?: true

Size: 328 Bytes

Versions: 1

Compression:

Stored size: 328 Bytes

Contents

module WhosDatedWho
  class Client
    def fetch(name)
      search = "#{name} dating site:whosdatedwho.com"
      bing_results = BingClient.new.search(search)
      url = bing_results.first[:Web].first[:Url]

      resp = Faraday.get(url)

      if resp.success?
        Parser.new.parse(resp.body)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
whos_dated_who-1.0.4 lib/whos_dated_who/client.rb