Sha256: b5aa577dcd6ab0cf0670ffab5c2700d64bbdac9696084db0b4e0d37b1419567c
Contents?: true
Size: 462 Bytes
Versions: 6
Compression:
Stored size: 462 Bytes
Contents
module QDM # app/models/qdm/entity.rb class Entity < Attribute include Mongoid::Document embedded_in :data_element field :id, type: String embeds_one :identifier, class_name: 'QDM::Identifier' field :qdmVersion, type: String, default: '5.6' def initialize(options = {}) super(options) # default id to the mongo ObjectId for this DataElement if it isnt already defined self.id = _id.to_s unless id? end end end
Version data entries
6 entries across 6 versions & 1 rubygems