Sha256: 81edecd907e9a0131f69b134de2d8af3512e5b414e9eca046856df8ba5b575fb
Contents?: true
Size: 688 Bytes
Versions: 143
Compression:
Stored size: 688 Bytes
Contents
module Fog module Parsers module AWS module S3 class GetService < Fog::Parsers::Base def reset @bucket = {} @response = { 'Owner' => {}, 'Buckets' => [] } end def end_element(name) case name when 'Bucket' @response['Buckets'] << @bucket @bucket = {} when 'CreationDate' @bucket['CreationDate'] = Time.parse(@value) when 'DisplayName', 'ID' @response['Owner'][name] = @value when 'Name' @bucket[name] = @value end end end end end end end
Version data entries
143 entries across 143 versions & 3 rubygems