Class: ComerDeTapas::Fetcher
- Inherits:
-
Object
- Object
- ComerDeTapas::Fetcher
- Includes:
- Celluloid::IO
- Defined in:
- lib/comer_de_tapas/fetcher.rb
Instance Method Summary collapse
-
#fetch(url, cookie, query = {}) ⇒ Object
Fetch url with given cookie, and query string (optional).
Instance Method Details
#fetch(url, cookie, query = {}) ⇒ Object
Fetch url with given cookie, and query string (optional)
11 12 13 14 |
# File 'lib/comer_de_tapas/fetcher.rb', line 11 def fetch url, , query={} require "http" HTTP.with("Cookie" => ).get(url, ssl_socket_class: Celluloid::IO::SSLSocket, params: query) end |