Class: 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, #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

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



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

def additional_indent
  2
end

#get_cf_attributesObject



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