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_pattern, #allowed_values, #constraint_description, #default_value, #description, #is_global, #max_length, #max_value, #min_length, #min_value, #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, #FnJoin, #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
114 115 116 117 118 119 120 121 |
# File 'lib/cfhighlander.dsl.params.rb', line 114 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.
112 113 114 |
# File 'lib/cfhighlander.dsl.params.rb', line 112 def mapAttribute @mapAttribute end |
#mapKey ⇒ Object
Returns the value of attribute mapKey.
112 113 114 |
# File 'lib/cfhighlander.dsl.params.rb', line 112 def mapKey @mapKey end |
#mapName ⇒ Object
Returns the value of attribute mapName.
112 113 114 |
# File 'lib/cfhighlander.dsl.params.rb', line 112 def mapName @mapName end |
Instance Method Details
#attribute(key) ⇒ Object
127 128 129 |
# File 'lib/cfhighlander.dsl.params.rb', line 127 def attribute(key) @mapAttribute = key end |
#key(map_key) ⇒ Object
123 124 125 |
# File 'lib/cfhighlander.dsl.params.rb', line 123 def key(map_key) @mapKey = map_key end |
#map(mapName) ⇒ Object
131 132 133 |
# File 'lib/cfhighlander.dsl.params.rb', line 131 def map(mapName) @mapName = mapName end |
#mapProvider ⇒ Object
135 136 137 |
# File 'lib/cfhighlander.dsl.params.rb', line 135 def mapProvider mappings_provider(@mapName) end |