From 85cab629c400d4e7eb1ed59abeccce4ecff698b3 Mon Sep 17 00:00:00 2001 From: Kevin Soltysiak Date: Mon, 12 Feb 2024 00:22:34 +0100 Subject: [PATCH] refactor(inspect): slightly update method --- lib/scalingo/api/client.rb | 4 +--- lib/scalingo/api/endpoint.rb | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/scalingo/api/client.rb b/lib/scalingo/api/client.rb index a7ba304..e2df212 100644 --- a/lib/scalingo/api/client.rb +++ b/lib/scalingo/api/client.rb @@ -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 diff --git a/lib/scalingo/api/endpoint.rb b/lib/scalingo/api/endpoint.rb index 5698a23..f0d5824 100644 --- a/lib/scalingo/api/endpoint.rb +++ b/lib/scalingo/api/endpoint.rb @@ -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