Merge pull request #6 from marclennox/master
Fixing an issue where the input parameters were being referenced as a hash after having been converted to an array of name, value pairs.
This commit is contained in:
commit
9ba98b63d7
|
@ -63,7 +63,7 @@ module Google
|
|||
self.headers = options[:headers] || {}
|
||||
if options[:media]
|
||||
self.media = options[:media]
|
||||
upload_type = parameters['uploadType'] || parameters['upload_type']
|
||||
upload_type = self.parameters.find { |(k, _)| ['uploadType', 'upload_type'].include?(k) }.last
|
||||
case upload_type
|
||||
when "media"
|
||||
if options[:body] || options[:body_object]
|
||||
|
|
Loading…
Reference in New Issue