Class: DrawCloud::Map::MapLookup
- Inherits:
-
Object
- Object
- DrawCloud::Map::MapLookup
- Defined in:
- lib/draw_cloud/map.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#map ⇒ Object
Returns the value of attribute map.
Instance Method Summary collapse
-
#initialize(map, key) ⇒ MapLookup
constructor
A new instance of MapLookup.
- #ref ⇒ Object
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
#key ⇒ Object
Returns the value of attribute key.
22 23 24 |
# File 'lib/draw_cloud/map.rb', line 22 def key @key end |
#map ⇒ Object
Returns the value of attribute map.
22 23 24 |
# File 'lib/draw_cloud/map.rb', line 22 def map @map end |
Instance Method Details
#ref ⇒ Object
28 29 30 |
# File 'lib/draw_cloud/map.rb', line 28 def ref {"Fn::FindInMap" => [map.resource_name, map.function_resource, key]} end |