Class: CfFactory::CfWebSiteConfig
- Inherits:
-
Object
- Object
- CfFactory::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, #hash_to_string, #set_quotes
Constructor Details
#initialize(index_doc, error_doc) ⇒ CfWebSiteConfig
Returns a new instance of CfWebSiteConfig.
13 14 15 16 |
# File 'lib/cf_factory/s3/cf_web_site_config.rb', line 13 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.
7 8 9 |
# File 'lib/cf_factory/s3/cf_web_site_config.rb', line 7 def id @id end |
Instance Method Details
#additional_indent ⇒ Object
9 10 11 |
# File 'lib/cf_factory/s3/cf_web_site_config.rb', line 9 def additional_indent 2 end |
#get_cf_attributes ⇒ Object
18 19 20 21 22 23 |
# File 'lib/cf_factory/s3/cf_web_site_config.rb', line 18 def get_cf_attributes result = {} result["IndexDocument"] = @index_doc result["ErrorDocument"] = @error_doc result end |