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