From 3fe9fec711a4c86cd12f446cbb61551adb28e55f Mon Sep 17 00:00:00 2001 From: Bob Aman Date: Thu, 7 Oct 2010 22:37:57 +0000 Subject: [PATCH] Added example to Service#to_h method. git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@48 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef --- lib/google/api_client/discovery.rb | 4 ++++ 1 file changed, 4 insertions(+) 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