Class: Humidifier::Directory::Export

Inherits:
Struct
  • Object
show all
Defined in:
lib/humidifier/directory.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



10
11
12
# File 'lib/humidifier/directory.rb', line 10

def attribute
  @attribute
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



10
11
12
# File 'lib/humidifier/directory.rb', line 10

def name
  @name
end

Instance Method Details

#valueObject



12
13
14
15
16
17
18
# File 'lib/humidifier/directory.rb', line 12

def value
  if attribute.is_a?(String)
    Humidifier.fn.get_att([name, attribute])
  else
    Humidifier.ref(name)
  end
end