diff --git a/lib/google/api_client/discovery.rb b/lib/google/api_client/discovery.rb index 2a14295fd..a1e36bf37 100644 --- a/lib/google/api_client/discovery.rb +++ b/lib/google/api_client/discovery.rb @@ -138,6 +138,10 @@ module Google # Returns a String representation of the service's state. # # @return [String] The service's state, as a String. + # + # @example + # # Discover available methods + # method_names = client.discovered_service('buzz').to_h.keys def inspect sprintf( "#<%s:%#0x NAME:%s>", self.class.to_s, self.object_id, self.name