Class: Humidifier::Output
- Inherits:
-
Object
- Object
- Humidifier::Output
- Defined in:
- lib/humidifier/output.rb
Overview
Represents a CFN stack output
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Output
constructor
A new instance of Output.
-
#to_cf ⇒ Object
CFN stack syntax.
Constructor Details
#initialize(opts = {}) ⇒ Output
Returns a new instance of Output.
8 9 10 11 |
# File 'lib/humidifier/output.rb', line 8 def initialize(opts = {}) self.description = opts[:description] self.value = opts[:value] end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
6 7 8 |
# File 'lib/humidifier/output.rb', line 6 def description @description end |
#value ⇒ Object
Returns the value of attribute value.
6 7 8 |
# File 'lib/humidifier/output.rb', line 6 def value @value end |
Instance Method Details
#to_cf ⇒ Object
CFN stack syntax
14 15 16 17 18 |
# File 'lib/humidifier/output.rb', line 14 def to_cf cf = { 'Value' => Serializer.dump(value) } cf['Description'] = description if description cf end |