Partial solution to the issue of generating JSON.

This commit is contained in:
Bob Aman 2011-08-19 11:59:53 +03:00
parent f159ab7285
commit 6fc526bd21
1 changed files with 8 additions and 0 deletions

View File

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