Class: RichUrls::PatronBrowser
Instance Method Summary collapse
Instance Method Details
#remote_call(url) ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/patron_browser.rb', line 14 def remote_call(url) session = Patron::Session.new( timeout: DEFAULT_TIMEOUT, headers: RichUrls.headers ) response = session.get(url) [response.status, response.url, response.body] end |