Class: TaaS::ParameterFactory
- Inherits:
-
Object
- Object
- TaaS::ParameterFactory
- Defined in:
- lib/helper/parameter_factory.rb
Class Method Summary collapse
Class Method Details
.generate_parameter_string(template, params_hash) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/helper/parameter_factory.rb', line 3 def self.generate_parameter_string(template,params_hash) parameter_string = "" template = "key=value" if template.nil? params_hash.each do |key,value| parameter_string += " #{template.gsub("key",key.to_s).gsub("value",value.to_s)}" end parameter_string end |