Class: Cfhighlander::Dsl::Parameter
- Defined in:
- lib/cfhighlander.dsl.params.rb
Overview
model classes
Direct Known Subclasses
Instance Attribute Summary collapse
-
#allowed_pattern ⇒ Object
Returns the value of attribute allowed_pattern.
-
#allowed_values ⇒ Object
Returns the value of attribute allowed_values.
-
#constraint_description ⇒ Object
Returns the value of attribute constraint_description.
-
#default_value ⇒ Object
Returns the value of attribute default_value.
-
#description ⇒ Object
Returns the value of attribute description.
-
#is_global ⇒ Object
Returns the value of attribute is_global.
-
#max_length ⇒ Object
Returns the value of attribute max_length.
-
#max_value ⇒ Object
Returns the value of attribute max_value.
-
#min_length ⇒ Object
Returns the value of attribute min_length.
-
#min_value ⇒ Object
Returns the value of attribute min_value.
-
#name ⇒ Object
Returns the value of attribute name.
-
#no_echo ⇒ Object
Returns the value of attribute no_echo.
-
#provided_value ⇒ Object
Returns the value of attribute provided_value.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from DslBase
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Parameter
constructor
A new instance of 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, #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_pattern ⇒ Object
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_values ⇒ Object
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_description ⇒ Object
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_value ⇒ Object
Returns the value of attribute default_value.
76 77 78 |
# File 'lib/cfhighlander.dsl.params.rb', line 76 def default_value @default_value end |
#description ⇒ Object
Returns the value of attribute description.
76 77 78 |
# File 'lib/cfhighlander.dsl.params.rb', line 76 def description @description end |
#is_global ⇒ Object
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_length ⇒ Object
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_value ⇒ Object
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_length ⇒ Object
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_value ⇒ Object
Returns the value of attribute min_value.
76 77 78 |
# File 'lib/cfhighlander.dsl.params.rb', line 76 def min_value @min_value end |
#name ⇒ Object
Returns the value of attribute name.
76 77 78 |
# File 'lib/cfhighlander.dsl.params.rb', line 76 def name @name end |
#no_echo ⇒ Object
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_value ⇒ Object
Returns the value of attribute provided_value.
76 77 78 |
# File 'lib/cfhighlander.dsl.params.rb', line 76 def provided_value @provided_value end |
#type ⇒ Object
Returns the value of attribute type.
76 77 78 |
# File 'lib/cfhighlander.dsl.params.rb', line 76 def type @type end |