Class: Hawker::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/hawker/request.rb

Class Method Summary collapse

Class Method Details

.call(url) ⇒ RestClient::Response

Performs the request to the given URL in order to get the page html

Returns:

  • (RestClient::Response)


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