From 85553b339acf3f9285a1c03b2fff342d9ddb9b6b Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Wed, 11 Jan 2017 16:00:07 +0100 Subject: documentation for all classes --- lib/import.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/import.rb') diff --git a/lib/import.rb b/lib/import.rb index 7a68335..fd00fbe 100644 --- a/lib/import.rb +++ b/lib/import.rb @@ -1,12 +1,14 @@ module OpenTox + # Import data from external databases module Import class Enanomapper include OpenTox - # time critical step: JSON parsing (>99%), Oj brings only minor speed gains (~1%) + # Import from eNanoMapper def self.import + # time critical step: JSON parsing (>99%), Oj brings only minor speed gains (~1%) datasets = {} bundles = JSON.parse(RestClientWrapper.get('https://data.enanomapper.net/bundle?media=application%2Fjson'))["dataset"] bundles.each do |bundle| -- cgit v1.2.3