Class: Humidifier::Mapping
- Inherits:
-
Object
- Object
- Humidifier::Mapping
- Defined in:
- lib/humidifier/mapping.rb
Overview
Represents a CFN stack mapping
Instance Attribute Summary collapse
-
#opts ⇒ Object
Returns the value of attribute opts.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Mapping
constructor
A new instance of Mapping.
-
#to_cf ⇒ Object
CFN stack syntax.
Constructor Details
#initialize(opts = {}) ⇒ Mapping
Returns a new instance of Mapping.
6 7 8 |
# File 'lib/humidifier/mapping.rb', line 6 def initialize(opts = {}) self.opts = opts end |
Instance Attribute Details
#opts ⇒ Object
Returns the value of attribute opts.
4 5 6 |
# File 'lib/humidifier/mapping.rb', line 4 def opts @opts end |
Instance Method Details
#to_cf ⇒ Object
CFN stack syntax
11 12 13 |
# File 'lib/humidifier/mapping.rb', line 11 def to_cf Serializer.dump(opts) end |