summaryrefslogtreecommitdiff
path: root/prediction.rb
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2017-11-09 14:28:30 +0000
committergebele <gebele@in-silico.ch>2017-11-09 14:28:30 +0000
commit31f1217be7162aac06aa262376f432f676928749 (patch)
treeede31e5909994f4e7adbe54b68b9119150479409 /prediction.rb
parent745103c970b9883808ce95399a8d0a32e5c57342 (diff)
cleanup and reorder code;save prediction object also for single prediction
Diffstat (limited to 'prediction.rb')
-rw-r--r--prediction.rb7
1 files changed, 6 insertions, 1 deletions
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