app/models/reference_analysis.rb
# get all configuration files for this analysis as a hash
get all configuration files for this analysis as a hash
get all configuration files for this analysis as a hash
def configuration_settings
    settings = {}
    self.reference_analysis_data.each do |parameter|
      settings[parameter.data_type] ||= []
      config = {
          'name' => "#{parameter.call_name}.#{parameter.parameter_name}"
      }
      if parameter.data_type == 'inputs'
        config.merge!({
                          'optional' => parameter.optional,
                          'inputType' => parameter.parameter_type
                      })
      else
        config.merge!({'outputType' => parameter.parameter_type})
      end
      settings[parameter.data_type] << config
    end
    settings
  end
def configuration_settings settings = { } self . reference_analysis_data . each do | parameter | settings [ parameter . data_type ] ||= [ ] config = { 'name' => "#{parameter.call_name}.#{parameter.parameter_name}" } if parameter . data_type == 'inputs' config . merge! ( { 'optional' => parameter . optional , 'inputType' => parameter . parameter_type } ) else config . merge! ( { 'outputType' => parameter . parameter_type } ) end settings [ parameter . data_type ] << config end settings end
get all configuration files for this analysis as a hash
get all configuration files for this analysis as a hash