Class: Cfhighlander::Dsl::MappingParam

Inherits:
Parameter show all
Defined in:
lib/cfhighlander.dsl.params.rb

Instance Attribute Summary collapse

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

#config

Instance Method Summary collapse

Methods inherited from Parameter

#initialize

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

#mapAttributeObject

Returns the value of attribute mapAttribute.



112
113
114
# File 'lib/cfhighlander.dsl.params.rb', line 112

def mapAttribute
  @mapAttribute
end

#mapKeyObject

Returns the value of attribute mapKey.



112
113
114
# File 'lib/cfhighlander.dsl.params.rb', line 112

def mapKey
  @mapKey
end

#mapNameObject

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

#mapProviderObject



135
136
137
# File 'lib/cfhighlander.dsl.params.rb', line 135

def mapProvider
  mappings_provider(@mapName)
end