Class: Humidifier::Reservoir::Stack::Export
- Inherits:
-
Struct
- Object
- Struct
- Humidifier::Reservoir::Stack::Export
- Defined in:
- lib/humidifier/reservoir/stack.rb
Overview
Represents an exported resource in a stack for use in cross-stack references.
Instance Attribute Summary collapse
-
#attribute ⇒ Object
Returns the value of attribute attribute.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#attribute ⇒ Object
Returns the value of attribute attribute
9 10 11 |
# File 'lib/humidifier/reservoir/stack.rb', line 9 def attribute @attribute end |
#name ⇒ Object
Returns the value of attribute name
9 10 11 |
# File 'lib/humidifier/reservoir/stack.rb', line 9 def name @name end |
Instance Method Details
#value ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/humidifier/reservoir/stack.rb', line 11 def value if attribute.is_a?(String) Humidifier.fn.get_att([name, attribute]) else Humidifier.ref(name) end end |