1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/aws/requests/s3/get_object.rb
2009-07-13 19:14:59 -07:00

18 lines
324 B
Ruby

module Fog
module AWS
class S3
# Get an object from S3
# FIXME: docs
def get_object(bucket_name, object_name)
request({
:headers => {},
:host => "#{bucket_name}.#{@host}",
:method => 'GET',
:path => object_name
})
end
end
end
end