lib/sendgrid4r/rest/settings/enforced_tls.rb in sendgrid4r-1.11.0 vs lib/sendgrid4r/rest/settings/enforced_tls.rb in sendgrid4r-1.12.0

- old
+ new

@@ -19,15 +19,19 @@ "#{BASE_URL}/user/settings/enforced_tls" end def get_enforced_tls(&block) resp = get(@auth, Settings::EnforcedTls.url, &block) - Settings::EnforcedTls.create_enforced_tls(resp) + finish(resp, @raw_resp) do |r| + Settings::EnforcedTls.create_enforced_tls(r) + end end def patch_enforced_tls(params:, &block) resp = patch(@auth, Settings::EnforcedTls.url, params.to_h, &block) - Settings::EnforcedTls.create_enforced_tls(resp) + finish(resp, @raw_resp) do |r| + Settings::EnforcedTls.create_enforced_tls(r) + end end end end end