Class: CloudFormer::Parameter
- Inherits:
-
Object
- Object
- CloudFormer::Parameter
- Includes:
- HasPropertiesAndAttributes, MakesJson
- Defined in:
- lib/cloud_former/parameters/parameter.rb
Direct Known Subclasses
CommaDelimitedListParameter, NumberParameter, StringParameter
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #get_name ⇒ Object
-
#initialize(name, &block) ⇒ Parameter
constructor
A new instance of Parameter.
Methods included from MakesJson
Methods included from HasPropertiesAndAttributes
included, #nested_resources, #resource_tree
Constructor Details
#initialize(name, &block) ⇒ Parameter
Returns a new instance of Parameter.
22 23 24 25 26 27 |
# File 'lib/cloud_former/parameters/parameter.rb', line 22 def initialize(name, &block) @name = name if block_given? self.instance_eval(&block) end end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
18 19 20 |
# File 'lib/cloud_former/parameters/parameter.rb', line 18 def type @type end |
Instance Method Details
#get_name ⇒ Object
29 30 31 |
# File 'lib/cloud_former/parameters/parameter.rb', line 29 def get_name @name end |