Class: CfFactory::CfWebSiteConfig

Inherits:
Object
  • Object
show all
Includes:
CfInner
Defined in:
lib/cf_factory/s3/cf_web_site_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (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_indentObject



9
10
11
# File 'lib/cf_factory/s3/cf_web_site_config.rb', line 9

def additional_indent
  2
end

#get_cf_attributesObject



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