Skip to content

Instantly share code, notes, and snippets.

View Khomyachok5's full-sized avatar

Khomyachok5 Khomyachok5

View GitHub Profile
require 'net/http'
require 'json'
class Net::HTTP::Patch < Net::HTTPRequest
METHOD = 'PATCH'
REQUEST_HAS_BODY = true
RESPONSE_HAS_BODY = true
end
url = URI.parse('https://api.github.com/user')