Class: Cfhighlander::Dsl::MappingParam
- Defined in:
- lib/cfhighlander.dsl.params.rb
Instance Attribute Summary collapse
-
#mapAttribute ⇒ Object
Returns the value of attribute mapAttribute.
-
#mapKey ⇒ Object
Returns the value of attribute mapKey.
-
#mapName ⇒ Object
Returns the value of attribute mapName.
Attributes inherited from Parameter
#allowed_values, #default_value, #is_global, #name, #no_echo, #provided_value, #type
Attributes inherited from DslBase
Instance Method Summary collapse
- #attribute(key) ⇒ Object
- #key(map_key) ⇒ Object
- #map(mapName) ⇒ Object
- #mapProvider ⇒ Object
- #method_missing(method, *args) ⇒ Object
Methods inherited from Parameter
Methods inherited from DslBase
#AWSAccountId, #AWSNoValue, #AWSNotificationARNs, #AWSPartition, #AWSStackName, #AWSStackRegion, #AWSURLSuffix, #FindInMap, #FnAnd, #FnBase64, #FnCidr, #FnEquals, #FnFindInMap, #FnGetAZs, #FnGetAtt, #FnIf, #FnImportValue, #FnNot, #FnOr, #FnSelect, #FnSplit, #FnSub, #GetAtt, #Ref, #cfmap, #cfout, #initialize
Constructor Details
This class inherits a constructor from Cfhighlander::Dsl::Parameter
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
81 82 83 84 85 86 87 88 |
# File 'lib/cfhighlander.dsl.params.rb', line 81 def method_missing(method, *args) smethod = "#{method}" if smethod.start_with?('Map') puts smethod end super.method_missing(method) end |
Instance Attribute Details
#mapAttribute ⇒ Object
Returns the value of attribute mapAttribute.
79 80 81 |
# File 'lib/cfhighlander.dsl.params.rb', line 79 def mapAttribute @mapAttribute end |
#mapKey ⇒ Object
Returns the value of attribute mapKey.
79 80 81 |
# File 'lib/cfhighlander.dsl.params.rb', line 79 def mapKey @mapKey end |
#mapName ⇒ Object
Returns the value of attribute mapName.
79 80 81 |
# File 'lib/cfhighlander.dsl.params.rb', line 79 def mapName @mapName end |
Instance Method Details
#attribute(key) ⇒ Object
94 95 96 |
# File 'lib/cfhighlander.dsl.params.rb', line 94 def attribute(key) @mapAttribute = key end |
#key(map_key) ⇒ Object
90 91 92 |
# File 'lib/cfhighlander.dsl.params.rb', line 90 def key(map_key) @mapKey = map_key end |
#map(mapName) ⇒ Object
98 99 100 |
# File 'lib/cfhighlander.dsl.params.rb', line 98 def map(mapName) @mapName = mapName end |
#mapProvider ⇒ Object
102 103 104 |
# File 'lib/cfhighlander.dsl.params.rb', line 102 def mapProvider mappings_provider(@mapName) end |