Class: DoubleCheck::CheckUrl
- Inherits:
-
Object
- Object
- DoubleCheck::CheckUrl
- Defined in:
- lib/check_url.rb
Class Method Summary collapse
Class Method Details
.get_response(url) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/check_url.rb', line 4 def self.get_response(url) uri = URI.parse(url) response = Net::HTTP.start(uri.host, uri.port) do |http| http.get(uri.path) end end |