Partial solution to the issue of generating JSON.
authorBob Aman <bobaman@google.com>
Fri, 19 Aug 2011 08:59:53 +0000 (11:59 +0300)
committerBob Aman <bobaman@google.com>
Fri, 19 Aug 2011 08:59:53 +0000 (11:59 +0300)
lib/google/api_client/discovery/schema.rb

index 5c42513acf9d1c9211dc6b97cc494eecbef13045..6c532173b7fedc730db02b5e05c8bc32150ff2f0 100644 (file)
@@ -256,6 +256,14 @@ module Google
       def []=(key, value)
         return @data[key] = value
       end
+
+      def to_hash
+        return @data
+      end
+
+      def to_json
+        return JSON.generate(@data)
+      end
     end
   end
 end