Sha256: c076c1abe5a73806428c94af2acf61e0174db3a29e0e151dfff48e2fd557ebd5
Contents?: true
Size: 938 Bytes
Versions: 18
Compression:
Stored size: 938 Bytes
Contents
module CQM # StatementResult is used to store statement result information in IndividualResult class StatementResult include Mongoid::Document include Mongoid::Timestamps # These are the Mongoid equivalent of the Mongoose "enum" attribute for the respective fields. # They throw an error if you try to assign a value that's not in the array. validates_inclusion_of :relevance, in: %w[NA TRUE FALSE] # Library the clause this result is for is in field :library_name, type: String # Statment the clause this result is for is in field :statement_name, type: String # LocalId of the clause this result is for field :pretty, type: String # Final, processed result of raw calculation field :final, type: String # Raw result of clause calculation field :raw field :relevance, type: String # Relations to other model classes embedded_in :individual_result end end
Version data entries
18 entries across 18 versions & 1 rubygems