From 31f1217be7162aac06aa262376f432f676928749 Mon Sep 17 00:00:00 2001 From: gebele Date: Thu, 9 Nov 2017 14:28:30 +0000 Subject: cleanup and reorder code;save prediction object also for single prediction --- prediction.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'prediction.rb') diff --git a/prediction.rb b/prediction.rb index 4e46d52..afceb08 100644 --- a/prediction.rb +++ b/prediction.rb @@ -9,8 +9,9 @@ module OpenTox field :compound, type: BSON::ObjectId field :model, type: BSON::ObjectId field :prediction, type: Hash, default:{} + field :csv, type: String - attr_accessor :compound, :model, :prediction + attr_accessor :compound, :model, :prediction, :csv def compound self[:compound] @@ -24,6 +25,10 @@ module OpenTox self[:prediction] end + def csv + self[:csv] + end + end end -- cgit v1.2.3