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.
8 9 10 |
# File 'lib/humidifier/ref.rb', line 8 def initialize(reference) @reference = reference end |
Instance Attribute Details
#reference ⇒ Object (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_cf ⇒ Object
Builds CFN syntax
13 14 15 |
# File 'lib/humidifier/ref.rb', line 13 def to_cf { "Ref" => Serializer.dump(reference) } end |