From 6fc526bd21bad8672782139dbc082e86b13a8eaa Mon Sep 17 00:00:00 2001 From: Bob Aman Date: Fri, 19 Aug 2011 11:59:53 +0300 Subject: [PATCH] Partial solution to the issue of generating JSON. --- lib/google/api_client/discovery/schema.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/google/api_client/discovery/schema.rb b/lib/google/api_client/discovery/schema.rb index 5c42513ac..6c532173b 100644 --- a/lib/google/api_client/discovery/schema.rb +++ b/lib/google/api_client/discovery/schema.rb @@ -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