Class: DrawCloud::Map::MapLookup

Inherits:
Object
  • Object
show all
Defined in:
lib/draw_cloud/map.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(map, key) ⇒ MapLookup

Returns a new instance of MapLookup.



23
24
25
26
# File 'lib/draw_cloud/map.rb', line 23

def initialize(map, key)
  @map = map
  @key = key
end

Instance Attribute Details

#keyObject

Returns the value of attribute key.



22
23
24
# File 'lib/draw_cloud/map.rb', line 22

def key
  @key
end

#mapObject

Returns the value of attribute map.



22
23
24
# File 'lib/draw_cloud/map.rb', line 22

def map
  @map
end

Instance Method Details

#refObject



28
29
30
# File 'lib/draw_cloud/map.rb', line 28

def ref
  {"Fn::FindInMap" => [map.resource_name, map.function_resource, key]}
end