Class: CloudFormer::CloudFormation::ConfigSet
- Inherits:
-
MetadataResource
- Object
- MetadataResource
- CloudFormer::CloudFormation::ConfigSet
- Defined in:
- lib/cloud_former/metadata_resources/cloud_formation/config_set.rb
Instance Attribute Summary
Attributes inherited from MetadataResource
Instance Method Summary collapse
- #dump_json ⇒ Object
-
#initialize ⇒ ConfigSet
constructor
A new instance of ConfigSet.
- #items(val = nil) ⇒ Object
- #name(val = nil) ⇒ Object
Methods included from MakesJson
Methods included from HasPropertiesAndAttributes
Constructor Details
#initialize ⇒ ConfigSet
Returns a new instance of ConfigSet.
7 8 9 10 |
# File 'lib/cloud_former/metadata_resources/cloud_formation/config_set.rb', line 7 def initialize super @aws_type = 'AWS::CloudFormation::ConfigSet' end |
Instance Method Details
#dump_json ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/cloud_former/metadata_resources/cloud_formation/config_set.rb', line 26 def dump_json res = {} (@items || []).each do |item| res[item.name] = item.dump_json end res end |
#items(val = nil) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/cloud_former/metadata_resources/cloud_formation/config_set.rb', line 12 def items(val=nil) if val @items = val end @items end |
#name(val = nil) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/cloud_former/metadata_resources/cloud_formation/config_set.rb', line 19 def name(val=nil) if val @name = val end @name end |