Class: CfWebSiteConfig
- Inherits:
-
Object
- Object
- CfWebSiteConfig
- Includes:
- CfInner
- Defined in:
- lib/cf_factory/s3/cf_web_site_config.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
- #additional_indent ⇒ Object
- #get_cf_attributes ⇒ Object
-
#initialize(index_doc, error_doc) ⇒ CfWebSiteConfig
constructor
A new instance of CfWebSiteConfig.
Methods included from CfInner
#generate, #generate_name, #set_quotes
Constructor Details
#initialize(index_doc, error_doc) ⇒ CfWebSiteConfig
Returns a new instance of CfWebSiteConfig.
12 13 14 15 |
# File 'lib/cf_factory/s3/cf_web_site_config.rb', line 12 def initialize(index_doc, error_doc) @index_doc = index_doc @error_doc = error_doc end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/cf_factory/s3/cf_web_site_config.rb', line 6 def id @id end |
Instance Method Details
#additional_indent ⇒ Object
8 9 10 |
# File 'lib/cf_factory/s3/cf_web_site_config.rb', line 8 def additional_indent 2 end |
#get_cf_attributes ⇒ Object
17 18 19 20 21 22 |
# File 'lib/cf_factory/s3/cf_web_site_config.rb', line 17 def get_cf_attributes result = {} result["IndexDocument"] = @index_doc result["ErrorDocument"] = @error_doc result end |