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_service.rb
Wesley Beary 4c92ee236e doc work
2009-07-20 19:47:48 -07:00

29 lines
763 B
Ruby

module Fog
module AWS
class S3
# List information about S3 buckets for authorized user
#
# ==== Returns
# * response<~Fog::AWS::Response>:
# * body<~Hash>:
# * :buckets<~Hash>:
# * :name<~String> - Name of bucket
# * :creation_time<~Time> - Timestamp of bucket creation
# * :owner<~Hash>:
# * :display_name<~String> - Display name of bucket owner
# * :id<~String> - Id of bucket owner
def get_service
request({
:expects => 200,
:headers => {},
:host => @host,
:method => 'GET',
:parser => Fog::Parsers::AWS::S3::GetService.new,
:url => @host
})
end
end
end
end