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