Class: AWS::S3::Website::Builder

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

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(index_page, error_page) ⇒ Builder

Returns a new instance of Builder.



28
29
30
31
32
# File 'lib/aws/s3/website.rb', line 28

def initialize(index_page, error_page)
					@index_page  = index_page
					@error_page = error_page
					super()
end

Instance Attribute Details

#error_pageObject (readonly)

Returns the value of attribute error_page.



27
28
29
# File 'lib/aws/s3/website.rb', line 27

def error_page
  @error_page
end

#index_pageObject (readonly)

Returns the value of attribute index_page.



27
28
29
# File 'lib/aws/s3/website.rb', line 27

def index_page
  @index_page
end

Instance Method Details

#buildObject



34
35
36
37
38
39
40
41
42
43
# File 'lib/aws/s3/website.rb', line 34

def build
					xml.tag!('WebsiteConfiguration', 'xmlns' => 'http://s3.amazonaws.com/doc/2006-03-01/') do
						xml.IndexDocument do
	xml.Suffix index_page
						end
						xml.ErrorDocument do
	xml.Key error_page
						end
					end
end