lib/fog/google/requests/storage/get_object.rb in fog-1.22.0 vs lib/fog/google/requests/storage/get_object.rb in fog-1.22.1
- old
+ new
@@ -1,10 +1,9 @@
module Fog
module Storage
class Google
class Real
-
# Get an object from Google Storage
#
# ==== Parameters
# * bucket_name<~String> - Name of bucket to read from
# * object_name<~String> - Name of object to read
@@ -55,15 +54,13 @@
:idempotent => true,
:method => 'GET',
:path => CGI.escape(object_name),
}))
end
-
end
class Mock
-
def get_object(bucket_name, object_name, options = {}, &block)
unless bucket_name
raise ArgumentError.new('bucket_name is required')
end
unless object_name
@@ -103,10 +100,9 @@
response.status = 404
raise(Excon::Errors.status_error({:expects => 200}, response))
end
response
end
-
end
end
end
end