Module: Snitcher
Instance Method Summary collapse
Instance Method Details
#snitch(token) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/snitcher.rb', line 6 def snitch(token) http = Net::HTTP.new("nosnch.in", 443) http.use_ssl = true response = http.request(Net::HTTP::Get.new("/#{token}")) response.is_a?(Net::HTTPSuccess) end |