Sha256: dbb921aa46bdd8d17ec0e40efd29190bdd808f689aca90f1282c83f7908d8fbc
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
# Unidom Standard 标准领域模型引擎 [![License](https://img.shields.io/badge/license-MIT-green.svg)](http://opensource.org/licenses/MIT) [![Gem Version](https://badge.fury.io/rb/unidom-standard.svg)](https://badge.fury.io/rb/unidom-standard) Unidom (UNIfied Domain Object Model) is a series of domain model engines. The Standard domain model engine includes the Standard and Standard Association models. Unidom (统一领域对象模型)是一系列的领域模型引擎。标准领域模型引擎包括标准和标准关联的模型。 ## Recent Update Check out the [Road Map](ROADMAP.md) to find out what's the next. Check out the [Change Log](CHANGELOG.md) to find out what's new. ## Usage in Gemfile ```ruby gem 'unidom-standard' ``` ## Run the Database Migration ```shell rake db:migrate ``` The migration versions start with 200006. ## Call the Model ```ruby gbk = Unidom::Standard::Standard.number_is('GBK').first gbk.source_standards.merge(Unidom::Standard::StandardAssociating.association_coded_as('REVS').valid_at.alive).valid_at.alive # The standards revises GBK. gbk.target_standards.merge(Unidom::Standard::StandardAssociating.association_coded_as('REVS').valid_at.alive).valid_at.alive # The standards revised by GBK, such as GB2312. # GBK revise GB2312 Unidom::Standard::StandardAssociating.associate! gbk, gb2312, 'REVS' ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unidom-standard-0.3 | README.md |