We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d83a394 commit 9813628Copy full SHA for 9813628
lib/serpapi/client.rb
@@ -182,7 +182,7 @@ def close
182
end
183
184
def inspect
185
- masked_key = api_key && (api_key.length > 4 ? "#{api_key[..1]}****#{api_key[-2..]}" : '****')
+ masked_key = api_key && (api_key.length > 8 ? "#{api_key[..3]}****#{api_key[-4..]}" : '****')
186
"#<#{self.class}:#{'%#016x' % (object_id << 1)} @engine=#{engine} @timeout=#{timeout} @persistent=#{persistent} api_key=#{masked_key}>"
187
188
0 commit comments