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, #FnNot, #FnOr, #FnSelect, #FnSplit, #FnSub, #GetAtt, #Ref, #cfmap, #cfout, #method_missing

Constructor Details

#initialize(name, type, defaultValue, noEcho = false, isGlobal = false, allowed_values = nil) ⇒ Parameter

Returns a new instance of Parameter.



65
66
67
68
69
70
71
72
73
# File 'lib/cfhighlander.dsl.params.rb', line 65

def initialize(name, type, defaultValue, noEcho = false, isGlobal = false, allowed_values = nil)
  @no_echo = noEcho
  @name = name
  @type = type
  @default_value = defaultValue
  @is_global = isGlobal
  @allowed_values = allowed_values
  @provided_value = 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_values ⇒ Object

Returns the value of attribute allowed_values.



57
58
59
# File 'lib/cfhighlander.dsl.params.rb', line 57

def allowed_values
  @allowed_values
end

#default_value ⇒ Object

Returns the value of attribute default_value.



57
58
59
# File 'lib/cfhighlander.dsl.params.rb', line 57

def default_value
  @default_value
end

#is_global ⇒ Object

Returns the value of attribute is_global.



57
58
59
# File 'lib/cfhighlander.dsl.params.rb', line 57

def is_global
  @is_global
end

#name ⇒ Object

Returns the value of attribute name.



57
58
59
# File 'lib/cfhighlander.dsl.params.rb', line 57

def name
  @name
end

#no_echo ⇒ Object

Returns the value of attribute no_echo.



57
58
59
# File 'lib/cfhighlander.dsl.params.rb', line 57

def no_echo
  @no_echo
end

#provided_value ⇒ Object

Returns the value of attribute provided_value.



57
58
59
# File 'lib/cfhighlander.dsl.params.rb', line 57

def provided_value
  @provided_value
end

#type ⇒ Object

Returns the value of attribute type.



57
58
59
# File 'lib/cfhighlander.dsl.params.rb', line 57

def type
  @type
end