Fixing issue with service-style batches and requests with bodies
This commit is contained in:
parent
73e58f3098
commit
f926429461
|
@ -80,6 +80,13 @@ module Google
|
|||
:api_method => call.method,
|
||||
:parameters => call.parameters
|
||||
}
|
||||
if call.respond_to? :body
|
||||
if call.body.respond_to? :to_hash
|
||||
base_call[:body_object] = call.body
|
||||
else
|
||||
base_call[:body] = call.body
|
||||
end
|
||||
end
|
||||
@base_batch.add(base_call) do |base_result|
|
||||
result = Google::APIClient::Service::BatchedCallResult.new(
|
||||
call, base_result)
|
||||
|
|
Loading…
Reference in New Issue