class RichUrls::PatronBrowser

Public Instance Methods

remote_call(url) click to toggle source
# 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