Syntax change to satisfy pull request

This commit is contained in:
Marc Lennox 2012-08-18 21:12:54 -07:00
parent 6795eeece9
commit 0e5070c356
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ module Google
self.headers = options[:headers] || {} self.headers = options[:headers] || {}
if options[:media] if options[:media]
self.media = options[:media] self.media = options[:media]
upload_type = self.parameters.find{|a| ['uploadType', 'upload_type'].include?(a[0])}[1] upload_type = self.parameters.find { |(k, _)| ['uploadType', 'upload_type'].include?(k) }.last
case upload_type case upload_type
when "media" when "media"
if options[:body] || options[:body_object] if options[:body] || options[:body_object]