Class: Humidifier::Mapping

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ Mapping

Returns a new instance of Mapping.


7
8
9
# File 'lib/humidifier/mapping.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/mapping.rb', line 5

def opts
  @opts
end

Instance Method Details

#to_cfObject


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

def to_cf
  Serializer.dump(opts)
end