Class: CfFactory::CfLogging
- Inherits:
-
Object
- Object
- CfFactory::CfLogging
- Includes:
- CfInner
- Defined in:
- lib/cf_factory/cloudfront/cf_logging.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(bucket, prefix) ⇒ CfLogging
constructor
A new instance of CfLogging.
Methods included from CfInner
#generate, #generate_name, #hash_to_string, #set_quotes
Constructor Details
#initialize(bucket, prefix) ⇒ CfLogging
Returns a new instance of CfLogging.
13 14 15 16 |
# File 'lib/cf_factory/cloudfront/cf_logging.rb', line 13 def initialize(bucket, prefix) @bucket = bucket @prefix = prefix end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/cf_factory/cloudfront/cf_logging.rb', line 7 def id @id end |
Instance Method Details
#additional_indent ⇒ Object
9 10 11 |
# File 'lib/cf_factory/cloudfront/cf_logging.rb', line 9 def additional_indent 4 end |
#get_cf_attributes ⇒ Object
18 19 20 21 22 23 |
# File 'lib/cf_factory/cloudfront/cf_logging.rb', line 18 def get_cf_attributes result = {} result["Bucket"] = @bucket.retrieve_attribute("DomainName") result["Prefix"] = @prefix result end |