class ComerDeTapas::Fetcher
Public Instance Methods
fetch(url, cookie, query={})
click to toggle source
Fetch url with given cookie, and query string (optional) @param [String] url @param cookie @option query [Hash]
# File lib/comer_de_tapas/fetcher.rb, line 11 def fetch url, cookie, query={} require "http" HTTP.with("Cookie" => cookie).get(url, ssl_socket_class: Celluloid::IO::SSLSocket, params: query) end