lib/fog/google/requests/storage/head_object.rb in fog-1.22.0 vs lib/fog/google/requests/storage/head_object.rb in fog-1.22.1

- old
+ new

@@ -1,10 +1,9 @@ module Fog module Storage class Google class Real - # Get headers for an object from Google Storage # # ==== Parameters # * bucket_name<~String> - Name of bucket to read from # * object_name<~String> - Name of object to read @@ -45,20 +44,17 @@ :method => 'HEAD', :path => CGI.escape(object_name), :query => query }) end - end class Mock - def head_object(bucket_name, object_name, options = {}) response = get_object(bucket_name, object_name, options) response.body = nil response end - end end end end