Class: AWS::S3::WebsiteConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/aws/s3/website_configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ WebsiteConfiguration

Returns a new instance of WebsiteConfiguration.



22
23
24
25
26
27
28
# File 'lib/aws/s3/website_configuration.rb', line 22

def initialize options = {}
  @options = deep_copy(options)
  if @options.empty?
    @options[:index_document] = { :suffix => 'index.html' }
    @options[:error_document] = { :key => 'error.html' }
  end
end

Instance Attribute Details

#optionsHash (readonly) Also known as: to_hash

Returns:

  • (Hash)


31
32
33
# File 'lib/aws/s3/website_configuration.rb', line 31

def options
  @options
end