Module: ConfigData
- Included in:
- Vardb
- Defined in:
- lib/vardb/snpscript_configdata.rb
Constant Summary collapse
- @@host =
{}
- @@metadata_file =
''- @@matrix_file =
''
Class Method Summary collapse
Instance Method Summary collapse
-
#set_connection(connection_hash) ⇒ Object
host connection.
-
#set_matrix(file) ⇒ Object
matrix file.
-
#set_metadata(file) ⇒ Object
metadata file.
Class Method Details
.get_connection ⇒ Object
19 20 21 |
# File 'lib/vardb/snpscript_configdata.rb', line 19 def self.get_connection @@host end |
.get_matrix ⇒ Object
39 40 41 |
# File 'lib/vardb/snpscript_configdata.rb', line 39 def self.get_matrix @@matrix_file end |
.get_metadata ⇒ Object
29 30 31 |
# File 'lib/vardb/snpscript_configdata.rb', line 29 def self. end |
Instance Method Details
#set_connection(connection_hash) ⇒ Object
host connection
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/vardb/snpscript_configdata.rb', line 8 def set_connection(connection_hash) @@host = { :host => "#{connection_hash[:host]}", :port => "#{connection_hash[:port]}", :dbname => "#{connection_hash[:dbname]}", :user => "#{connection_hash[:user]}", :password => "#{connection_hash[:password]}", } puts "connection details: #{@@host}" end |
#set_matrix(file) ⇒ Object
matrix file
34 35 36 37 |
# File 'lib/vardb/snpscript_configdata.rb', line 34 def set_matrix(file) @@matrix_file = file puts "matrix file set to: #{@@matrix_file}" end |
#set_metadata(file) ⇒ Object
metadata file
24 25 26 27 |
# File 'lib/vardb/snpscript_configdata.rb', line 24 def (file) = file puts "metadata file set to: #{@@metadata_file}" end |