Skip to content

Commit

Permalink
refactor(inspect): slightly update method
Browse files Browse the repository at this point in the history
  • Loading branch information
ksol committed Feb 12, 2024
1 parent cfc8ca6 commit 85cab62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions lib/scalingo/api/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ def self.register_handler!(method_name, klass)
def inspect
str = %(<#{self.class}:0x#{object_id.to_s(16)} url:"#{@url}" methods:)

methods = self.class.instance_methods - Scalingo::API::Client.instance_methods
str << methods.to_s

str << self.class.instance_methods(false).to_s
str << ">"
str
end
Expand Down
4 changes: 1 addition & 3 deletions lib/scalingo/api/endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ def initialize(client)
def inspect
str = %(<#{self.class}:0x#{object_id.to_s(16)} base_url:"#{@client.url}" endpoints:)

methods = self.class.instance_methods - Scalingo::API::Endpoint.instance_methods

str << methods.to_s
str << self.class.instance_methods(false).to_s
str << ">"
str
end
Expand Down

0 comments on commit 85cab62

Please sign in to comment.