Class: Humidifier::Condition
- Inherits:
-
Object
- Object
- Humidifier::Condition
- Defined in:
- lib/humidifier/condition.rb
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
Constructor Details
#initialize(opts) ⇒ Condition
Returns a new instance of Condition.
7 8 9 |
# File 'lib/humidifier/condition.rb', line 7 def initialize(opts) @opts = opts end |
Instance Attribute Details
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
5 6 7 |
# File 'lib/humidifier/condition.rb', line 5 def opts @opts end |
Instance Method Details
#to_cf ⇒ Object
11 12 13 |
# File 'lib/humidifier/condition.rb', line 11 def to_cf Serializer.dump(opts) end |