Class: Glossarist::SchemaMigration::V0ToV1
- Inherits:
-
Object
- Object
- Glossarist::SchemaMigration::V0ToV1
- Defined in:
- lib/glossarist/schema_migration/v0_to_v1.rb
Constant Summary collapse
- ENTRY_STATUS_MAP =
{ "Standard" => "valid", "Confirmed" => "valid", "Proposed" => "draft", }.freeze
- LANG_CODES =
Glossarist::LANG_CODES
- IEV_PATTERN =
/\{\{([^,}]+),\s*IEV:([^}]+)\}\}/- URN_PATTERN =
/\{urn:iso:std:iso:(\d+):([^,}]+),([^}]+)\}/
Instance Attribute Summary collapse
-
#from_version ⇒ Object
readonly
Returns the value of attribute from_version.
-
#to_version ⇒ Object
readonly
Returns the value of attribute to_version.
Instance Method Summary collapse
-
#initialize(concept_hash, from_version: "0", to_version: SchemaMigration::CURRENT_SCHEMA_VERSION, ref_maps: {}) ⇒ V0ToV1
constructor
A new instance of V0ToV1.
- #migrate ⇒ Object
Constructor Details
#initialize(concept_hash, from_version: "0", to_version: SchemaMigration::CURRENT_SCHEMA_VERSION, ref_maps: {}) ⇒ V0ToV1
Returns a new instance of V0ToV1.
19 20 21 22 23 24 25 26 |
# File 'lib/glossarist/schema_migration/v0_to_v1.rb', line 19 def initialize(concept_hash, from_version: "0", to_version: SchemaMigration::CURRENT_SCHEMA_VERSION, ref_maps: {}) @concept = concept_hash @from_version = from_version @to_version = to_version @ref_maps = ref_maps end |
Instance Attribute Details
#from_version ⇒ Object (readonly)
Returns the value of attribute from_version.
17 18 19 |
# File 'lib/glossarist/schema_migration/v0_to_v1.rb', line 17 def from_version @from_version end |
#to_version ⇒ Object (readonly)
Returns the value of attribute to_version.
17 18 19 |
# File 'lib/glossarist/schema_migration/v0_to_v1.rb', line 17 def to_version @to_version end |