summaryrefslogtreecommitdiff
path: root/prediction.rb
blob: afceb08f8dcee463f46bc4413729e92637362c59 (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
31
32
33
34
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