Sha256: ac6247237741cb4ac86cf4e12e803afc19fd51dfbe186568e4d2b4379abce7e3

Contents?: true

Size: 713 Bytes

Versions: 48

Compression:

Stored size: 713 Bytes

Contents

module Fog
  module Parsers
    module Storage
      module AWS

        # http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGETwebsite.html
        class GetBucketWebsite < Fog::Parsers::Base
          def reset
            @response = { 'ErrorDocument' => {}, 'IndexDocument' => {}, 'RedirectAllRequestsTo' => {} }
          end

          def end_element(name)
            case name
            when 'Key'
              @response['ErrorDocument'][name] = value
            when 'Suffix'
              @response['IndexDocument'][name] = value
            when 'HostName'
              @response['RedirectAllRequestsTo'][name] = value
            end
          end
        end
      end
    end
  end
end

Version data entries

48 entries across 46 versions & 5 rubygems

Version Path
fog-aws-3.1.0 lib/fog/aws/parsers/storage/get_bucket_website.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-aws-2.0.1/lib/fog/aws/parsers/storage/get_bucket_website.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-aws-2.0.1/lib/fog/aws/parsers/storage/get_bucket_website.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-aws-2.0.1/lib/fog/aws/parsers/storage/get_bucket_website.rb
fog-aws-3.0.0 lib/fog/aws/parsers/storage/get_bucket_website.rb
fog-aws-2.0.1 lib/fog/aws/parsers/storage/get_bucket_website.rb
fog-aws-2.0.0 lib/fog/aws/parsers/storage/get_bucket_website.rb
fog-aws-1.4.1 lib/fog/aws/parsers/storage/get_bucket_website.rb
fog-aws-1.4.0 lib/fog/aws/parsers/storage/get_bucket_website.rb
fog-aws-1.3.0 lib/fog/aws/parsers/storage/get_bucket_website.rb
fog-aws-1.2.1 lib/fog/aws/parsers/storage/get_bucket_website.rb
fog-aws-1.2.0 lib/fog/aws/parsers/storage/get_bucket_website.rb
fog-aws-1.1.0 lib/fog/aws/parsers/storage/get_bucket_website.rb
fog-aws-1.0.0 lib/fog/aws/parsers/storage/get_bucket_website.rb
fog-aws-0.13.0 lib/fog/aws/parsers/storage/get_bucket_website.rb
fog-aws-0.12.0 lib/fog/aws/parsers/storage/get_bucket_website.rb
fog-aws-0.11.0 lib/fog/aws/parsers/storage/get_bucket_website.rb
fog-aws-0.10.0 lib/fog/aws/parsers/storage/get_bucket_website.rb
fog-aws-0.9.4 lib/fog/aws/parsers/storage/get_bucket_website.rb
fog-aws-0.9.3 lib/fog/aws/parsers/storage/get_bucket_website.rb