Class: Humidifier::Condition

Inherits:
Object
  • Object
show all
Defined in:
lib/humidifier/condition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#optsObject (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_cfObject



11
12
13
# File 'lib/humidifier/condition.rb', line 11

def to_cf
  Serializer.dump(opts)
end