Skip to content

Commit

Permalink
fix: reduce output of inspect (#81)
Browse files Browse the repository at this point in the history
Change-Id: I73d8089eb533c323023b1fa5f8e5d312d1b2459b
  • Loading branch information
drstrangelooker authored Oct 7, 2024
1 parent 7d44944 commit ffb7d63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/looker-sdk/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def same_options?(opts)
#
# @return [String]
def inspect
inspected = super

vars = instance_variables.reject {|v| [:@swagger, :@operations].include? v}
inspected = "#{self.class.name}: attributes=\n#{vars.map {|v| "\t#{v}=#{instance_variable_get(v)}"}.join("\n")}>"
# Only show last 4 of token, secret
[@access_token, @client_secret].compact.each do |str|
len = [str.size - 4, 0].max
Expand Down

0 comments on commit ffb7d63

Please sign in to comment.