Adding batch support

This commit is contained in:
Sergio Gomes committed 2012-05-16 20:05:24 +01:00
1 parent c44ca3afc1
commit a666d52770
7 files changed
+691 -39

No files matched your search

+15
View File
@@ -171,6 +171,21 @@ module Google
end
end
##
# Returns the base URI for batch calls to this service.
#
# @return [Addressable::URI] The base URI that methods are joined to.
def batch_path
if @discovery_document['batchPath']
return @batch_path ||= (
self.document_base.join(Addressable::URI.parse('/' +
@discovery_document['batchPath']))
).normalize
else
return nil
end
end
##
# A list of schemas available for this version of the API.
#