Class: Humidifier::Mapping

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

Overview

Represents a CFN stack mapping

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ Mapping

Returns a new instance of Mapping.



6
7
8
# File 'lib/humidifier/mapping.rb', line 6

def initialize(opts = {})
  self.opts = opts
end

Instance Attribute Details

#optsObject

Returns the value of attribute opts.



4
5
6
# File 'lib/humidifier/mapping.rb', line 4

def opts
  @opts
end

Instance Method Details

#to_cfObject

CFN stack syntax



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

def to_cf
  Serializer.dump(opts)
end