You are viewing documentation for version 1 of the AWS SDK for Ruby. Version 2 documentation can be found here.
Class: AWS::S3::WebsiteConfiguration
- Inherits:
-
Object
- Object
- AWS::S3::WebsiteConfiguration
- Defined in:
- lib/aws/s3/website_configuration.rb
Instance Attribute Summary collapse
-
#options ⇒ Hash
(also: #to_hash)
readonly
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ WebsiteConfiguration
constructor
A new instance of WebsiteConfiguration.
Constructor Details
#initialize(options = {}) ⇒ WebsiteConfiguration
Returns a new instance of WebsiteConfiguration
51 52 53 54 55 56 57 |
# File 'lib/aws/s3/website_configuration.rb', line 51 def initialize = {} @options = deep_copy() if @options.empty? @options[:index_document] = { :suffix => 'index.html' } @options[:error_document] = { :key => 'error.html' } end end |
Instance Attribute Details
#options ⇒ Hash (readonly) Also known as: to_hash
60 61 62 |
# File 'lib/aws/s3/website_configuration.rb', line 60 def @options end |