Class: Humidifier::Mapping
- Inherits:
-
Object
- Object
- Humidifier::Mapping
- Defined in:
- lib/humidifier/mapping.rb
Instance Attribute Summary collapse
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Mapping
constructor
A new instance of Mapping.
- #to_cf ⇒ Object
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
#opts ⇒ Object (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_cf ⇒ Object
11 12 13 |
# File 'lib/humidifier/mapping.rb', line 11 def to_cf Serializer.dump(opts) end |