Class: CfFactory::CfParameter
- Inherits:
-
Object
- Object
- CfFactory::CfParameter
show all
- Includes:
- CfBase
- Defined in:
- lib/cf_factory/base/cf_parameter.rb
Instance Method Summary
collapse
Methods included from CfBase
#generate, #generate_ref, #get_deletion_policy, #get_name, #hash_to_string, #retrieve_attribute, #set_meta_data, #set_quotes, #set_tags
Constructor Details
#initialize(name, description, type, properties_hash = {}) ⇒ CfParameter
Returns a new instance of CfParameter.
7
8
9
10
11
12
|
# File 'lib/cf_factory/base/cf_parameter.rb', line 7
def initialize(name, description, type, properties_hash = {})
@name = name
@description = description
@type = type
@properties_hash = properties_hash
end
|
Instance Method Details
#get_cf_attributes ⇒ Object
18
19
20
|
# File 'lib/cf_factory/base/cf_parameter.rb', line 18
def get_cf_attributes
@properties_hash.merge({"Description" => @description})
end
|
#get_cf_properties ⇒ Object
22
23
24
|
# File 'lib/cf_factory/base/cf_parameter.rb', line 22
def get_cf_properties
{}
end
|
#get_cf_type ⇒ Object
14
15
16
|
# File 'lib/cf_factory/base/cf_parameter.rb', line 14
def get_cf_type
@type
end
|