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