Whoops, example was on the wrong method.

git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@49 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
This commit is contained in:
Bob Aman 2010-10-07 22:38:51 +00:00
parent 3fe9fec711
commit 35d35f49ed
1 changed files with 4 additions and 4 deletions

View File

@ -121,6 +121,10 @@ module Google
# Converts the service to a flat mapping of RPC names and method objects.
#
# @return [Hash] All methods available on the service.
#
# @example
# # Discover available methods
# method_names = client.discovered_service('buzz').to_h.keys
def to_h
return @hash ||= (begin
methods_hash = {}
@ -138,10 +142,6 @@ module Google
# Returns a <code>String</code> representation of the service's state.
#
# @return [String] The service's state, as a <code>String</code>.
#
# @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