Class: Cfhighlander::Dsl::MappingParam

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

Instance Attribute Summary collapse

Attributes inherited from Parameter

#allowed_values, #default_value, #is_global, #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, #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