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

Version Path
geemus-fog-0.0.0 lib/fog/aws/parsers/s3/get_service.rb
geemus-fog-0.0.1 lib/fog/aws/parsers/s3/get_service.rb
geemus-fog-0.0.3 lib/fog/aws/parsers/s3/get_service.rb
fog-0.2.30 lib/fog/aws/parsers/s3/get_service.rb
fog-0.2.28 lib/fog/aws/parsers/s3/get_service.rb
fog-0.2.27 lib/fog/aws/parsers/s3/get_service.rb
fog-0.2.26 lib/fog/aws/parsers/s3/get_service.rb
fog-0.2.25 lib/fog/aws/parsers/s3/get_service.rb
fog-0.2.24 lib/fog/aws/parsers/s3/get_service.rb
tecnh-fog-0.2.23.vpc lib/fog/aws/parsers/s3/get_service.rb
fog-0.2.23 lib/fog/aws/parsers/s3/get_service.rb
fog-0.2.22 lib/fog/aws/parsers/s3/get_service.rb
fog-0.2.21 lib/fog/aws/parsers/s3/get_service.rb
fog-0.2.20 lib/fog/aws/parsers/s3/get_service.rb
fog-0.2.19 lib/fog/aws/parsers/s3/get_service.rb
fog-0.2.18 lib/fog/aws/parsers/s3/get_service.rb
fog-0.2.17 lib/fog/aws/parsers/s3/get_service.rb
fog-0.2.16 lib/fog/aws/parsers/s3/get_service.rb
fog-0.2.15 lib/fog/aws/parsers/s3/get_service.rb
fog-0.2.14 lib/fog/aws/parsers/s3/get_service.rb