Class: Cfhighlander::Dsl::Parameter

Inherits:
DslBase
  • Object
show all
Defined in:
lib/cfhighlander.dsl.params.rb

Overview

model classes

Direct Known Subclasses

MappingParam

Instance Attribute Summary collapse

Attributes inherited from DslBase

#config

Instance Method Summary collapse

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, #method_missing

Constructor Details

#initialize(params = {}) ⇒ Parameter

Returns a new instance of Parameter.



91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# File 'lib/cfhighlander.dsl.params.rb', line 91

def initialize(params = {})
  @no_echo = params.fetch(:noEcho, false)
  @name = params.fetch(:name)
  @type = params.fetch(:type)
  @default_value = params.fetch(:defaultValue)
  @is_global = params.fetch(:isGlobal, false)
  @allowed_values = params.fetch(:allowedValues, nil)
  @provided_value = params.fetch(:providedValue, nil)
  @allowed_pattern = params.fetch(:allowedPattern, nil)
  @max_length = params.fetch(:maxLength, nil)
  @max_value = params.fetch(:maxValue, nil)
  @min_length = params.fetch(:minLength, nil)
  @min_value = params.fetch(:minValue, nil)
  @description = params.fetch(:description, nil)
  @constraint_description = params.fetch(:constraintDescription, nil)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Cfhighlander::Dsl::DslBase

Instance Attribute Details

#allowed_patternObject

Returns the value of attribute allowed_pattern.



76
77
78
# File 'lib/cfhighlander.dsl.params.rb', line 76

def allowed_pattern
  @allowed_pattern
end

#allowed_valuesObject

Returns the value of attribute allowed_values.



76
77
78
# File 'lib/cfhighlander.dsl.params.rb', line 76

def allowed_values
  @allowed_values
end

#constraint_descriptionObject

Returns the value of attribute constraint_description.



76
77
78
# File 'lib/cfhighlander.dsl.params.rb', line 76

def constraint_description
  @constraint_description
end

#default_valueObject

Returns the value of attribute default_value.



76
77
78
# File 'lib/cfhighlander.dsl.params.rb', line 76

def default_value
  @default_value
end

#descriptionObject

Returns the value of attribute description.



76
77
78
# File 'lib/cfhighlander.dsl.params.rb', line 76

def description
  @description
end

#is_globalObject

Returns the value of attribute is_global.



76
77
78
# File 'lib/cfhighlander.dsl.params.rb', line 76

def is_global
  @is_global
end

#max_lengthObject

Returns the value of attribute max_length.



76
77
78
# File 'lib/cfhighlander.dsl.params.rb', line 76

def max_length
  @max_length
end

#max_valueObject

Returns the value of attribute max_value.



76
77
78
# File 'lib/cfhighlander.dsl.params.rb', line 76

def max_value
  @max_value
end

#min_lengthObject

Returns the value of attribute min_length.



76
77
78
# File 'lib/cfhighlander.dsl.params.rb', line 76

def min_length
  @min_length
end

#min_valueObject

Returns the value of attribute min_value.



76
77
78
# File 'lib/cfhighlander.dsl.params.rb', line 76

def min_value
  @min_value
end

#nameObject

Returns the value of attribute name.



76
77
78
# File 'lib/cfhighlander.dsl.params.rb', line 76

def name
  @name
end

#no_echoObject

Returns the value of attribute no_echo.



76
77
78
# File 'lib/cfhighlander.dsl.params.rb', line 76

def no_echo
  @no_echo
end

#provided_valueObject

Returns the value of attribute provided_value.



76
77
78
# File 'lib/cfhighlander.dsl.params.rb', line 76

def provided_value
  @provided_value
end

#typeObject

Returns the value of attribute type.



76
77
78
# File 'lib/cfhighlander.dsl.params.rb', line 76

def type
  @type
end