Partial solution to the issue of generating JSON.
This commit is contained in:
1 parent
f159ab7285
commit
6fc526bd21
1 file changed
+8
@@ -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
|
||||
Reference in new issue
Block a user