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.



8
9
10
# File 'lib/humidifier/mapping.rb', line 8

def initialize(opts = {})
  @opts = opts
end

Instance Attribute Details

#optsObject (readonly)

Returns the value of attribute opts.



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

def opts
  @opts
end

Instance Method Details

#to_cfObject

CFN stack syntax



13
14
15
# File 'lib/humidifier/mapping.rb', line 13

def to_cf
  Serializer.dump(opts)
end