diff --git a/lib/vonage/json.rb b/lib/vonage/json.rb index afe8b505..4519e0fc 100644 --- a/lib/vonage/json.rb +++ b/lib/vonage/json.rb @@ -6,7 +6,7 @@ module Vonage module JSON extend T::Sig - sig { params(http_request: T.any(Net::HTTP::Put, Net::HTTP::Post, Net::HTTP::Get), params: T::Hash[Symbol, T.untyped]).void } + sig { params(http_request: T.any(Net::HTTP::Patch, Net::HTTP::Put, Net::HTTP::Post, Net::HTTP::Get), params: T::Hash[Symbol, T.untyped]).void } def self.update(http_request, params) http_request['Content-Type'] = 'application/json' http_request.body = ::JSON.generate(params)