Sha256: f26662016ee0333457a8371c1a7d81158d4e756558e69684e2942ba9ac835d4a

Contents?: true

Size: 851 Bytes

Versions: 19

Compression:

Stored size: 851 Bytes

Contents

module CQM
  # CQLLibrary encapsulates what used to be a Hash in Ruby, by explicitly specifying
  # a library ID, and the CQL string for that library
  class CQLLibrary
    include Mongoid::Document
    embedded_in :measure

    field :library_name, type: String
    field :library_version, type: String
    field :cql, type: String
    field :elm, type: Hash
    field :elm_annotations, type: Hash
    field :is_main_library, type: Boolean, default: false

    # Currently this is only relevant for cql libraries that are included in composite measures,
    # true indicates the library files are in the "top level" folder of the measure package, rather
    # than coming from a component measure folder.
    field :is_top_level, type: Boolean, default: true

    embeds_many :statement_dependencies, class_name: 'CQM::StatementDependency'
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
cqm-models-4.2.0 app/models/cqm/cql_library.rb
cqm-models-3.1.2 app/models/cqm/cql_library.rb
cqm-models-4.1.1 app/models/cqm/cql_library.rb
cqm-models-4.1.0 app/models/cqm/cql_library.rb
cqm-models-4.0.2 app/models/cqm/cql_library.rb
cqm-models-4.0.1 app/models/cqm/cql_library.rb
cqm-models-4.0.0 app/models/cqm/cql_library.rb
cqm-models-3.1.1 app/models/cqm/cql_library.rb
cqm-models-3.1.0 app/models/cqm/cql_library.rb
cqm-models-3.0.6 app/models/cqm/cql_library.rb
cqm-models-3.0.5 app/models/cqm/cql_library.rb
cqm-models-3.0.4 app/models/cqm/cql_library.rb
cqm-models-3.0.3 app/models/cqm/cql_library.rb
cqm-models-3.0.2 app/models/cqm/cql_library.rb
cqm-models-3.0.1 app/models/cqm/cql_library.rb
cqm-models-2.0.1 app/models/cqm/cql_library.rb
cqm-models-3.0.0 app/models/cqm/cql_library.rb
cqm-models-2.0.0 app/models/cqm/cql_library.rb
cqm-models-1.1.1.0 app/models/cqm/cql_library.rb