Class: Hawker::Request
- Inherits:
-
Object
- Object
- Hawker::Request
- Defined in:
- lib/hawker/request.rb
Class Method Summary collapse
-
.call(url) ⇒ RestClient::Response
Performs the request to the given URL in order to get the page html.
Class Method Details
.call(url) ⇒ RestClient::Response
Performs the request to the given URL in order to get the page html
9 10 11 |
# File 'lib/hawker/request.rb', line 9 def self.call(url) ::RestClient.get(url, user_agent: 'Mozilla/5.0 Mac OS') end |