blob: 4e46d522a5c25af7bf8fc15fc5e5ec013a4069e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
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:{}
attr_accessor :compound, :model, :prediction
def compound
self[:compound]
end
def model
self[:model]
end
def prediction
self[:prediction]
end
end
end
|