projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f159ab7
)
Partial solution to the issue of generating JSON.
author
Bob Aman <bobaman@google.com>
Fri, 19 Aug 2011 08:59:53 +0000
(11:59 +0300)
committer
Bob Aman <bobaman@google.com>
Fri, 19 Aug 2011 08:59:53 +0000
(11:59 +0300)
lib/google/api_client/discovery/schema.rb
patch
|
blob
|
history
diff --git
a/lib/google/api_client/discovery/schema.rb
b/lib/google/api_client/discovery/schema.rb
index 5c42513acf9d1c9211dc6b97cc494eecbef13045..6c532173b7fedc730db02b5e05c8bc32150ff2f0 100644
(file)
--- 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