diff options
author | gebele <gebele@in-silico.ch> | 2018-05-22 09:22:40 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2018-05-22 09:22:40 +0000 |
commit | 198165e4a0e46c522e28b69f10c9c8e5327f6bbb (patch) | |
tree | 9709022fdb13f28c9e6072e6ba0156141ae25ab4 /prediction.rb | |
parent | b101916876ce06d06633af2a3ac6a34bd6cb2762 (diff) |
add additional files
Diffstat (limited to 'prediction.rb')
-rw-r--r-- | prediction.rb | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/prediction.rb b/prediction.rb new file mode 100644 index 0000000..afceb08 --- /dev/null +++ b/prediction.rb @@ -0,0 +1,35 @@ +module OpenTox + + class Prediction + + include OpenTox + include Mongoid::Document + include Mongoid::Timestamps + store_in collection: "predictions" + field :compound, type: BSON::ObjectId + field :model, type: BSON::ObjectId + field :prediction, type: Hash, default:{} + field :csv, type: String + + attr_accessor :compound, :model, :prediction, :csv + + def compound + self[:compound] + end + + def model + self[:model] + end + + def prediction + self[:prediction] + end + + def csv + self[:csv] + end + + end + +end + |