We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca9fdcb commit 31ae742Copy full SHA for 31ae742
1 file changed
lib/serpapi/client.rb
@@ -183,7 +183,7 @@ def close
183
184
def inspect
185
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}>"
+ "#<#{self.class}:#{format('%#016x', object_id << 1)} @engine=#{engine} @timeout=#{timeout} @persistent=#{persistent} api_key=#{masked_key}>"
187
end
188
189
private
0 commit comments