Method: ExtraSpace::Crawler#fetch
- Defined in:
- lib/extraspace/crawler.rb
#fetch(url:) ⇒ HTTP::Response
38 39 40 41 42 43 |
# File 'lib/extraspace/crawler.rb', line 38 def fetch(url:) response = connection.get(url) raise FetchError.new(url:, response: response.flush) unless response.status.ok? response end |