Class: Humidifier::Ref

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

Overview

Builds CFN references

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reference) ⇒ Ref

Returns a new instance of Ref.



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

def initialize(reference)
  @reference = reference
end

Instance Attribute Details

#referenceObject (readonly)

Returns the value of attribute reference.



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

def reference
  @reference
end

Instance Method Details

#to_cfObject

Builds CFN syntax



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

def to_cf
  { "Ref" => Serializer.dump(reference) }
end