Class: Humidifier::Ref
- Inherits:
-
Object
- Object
- Humidifier::Ref
- Defined in:
- lib/humidifier/ref.rb
Overview
Builds CFN references
Instance Attribute Summary collapse
-
#reference ⇒ Object
readonly
Returns the value of attribute reference.
Instance Method Summary collapse
-
#initialize(reference) ⇒ Ref
constructor
A new instance of Ref.
-
#to_cf ⇒ Object
Builds CFN syntax.
Constructor Details
#initialize(reference) ⇒ Ref
Returns a new instance of Ref.
6 7 8 |
# File 'lib/humidifier/ref.rb', line 6 def initialize(reference) @reference = reference end |
Instance Attribute Details
#reference ⇒ Object (readonly)
Returns the value of attribute reference.
4 5 6 |
# File 'lib/humidifier/ref.rb', line 4 def reference @reference end |
Instance Method Details
#to_cf ⇒ Object
Builds CFN syntax
11 12 13 |
# File 'lib/humidifier/ref.rb', line 11 def to_cf { 'Ref' => Serializer.dump(reference) } end |