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
This commit is contained in:
Bob Aman 2010-10-07 22:37:57 +00:00
parent 793e983fbe
commit 3fe9fec711
1 changed files with 4 additions and 0 deletions

View File

@ -138,6 +138,10 @@ module Google
# Returns a <code>String</code> representation of the service's state. # Returns a <code>String</code> representation of the service's state.
# #
# @return [String] The service's state, as a <code>String</code>. # @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 def inspect
sprintf( sprintf(
"#<%s:%#0x NAME:%s>", self.class.to_s, self.object_id, self.name "#<%s:%#0x NAME:%s>", self.class.to_s, self.object_id, self.name