Class: Humidifier::Reservoir::Stack::Export

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#attributeObject

Returns the value of attribute attribute

Returns:

  • (Object)

    the current value of attribute



9
10
11
# File 'lib/humidifier/reservoir/stack.rb', line 9

def attribute
  @attribute
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



9
10
11
# File 'lib/humidifier/reservoir/stack.rb', line 9

def name
  @name
end

Instance Method Details

#valueObject



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