Module: NcsNavigator::Warehouse::Models::MdesModelCollection
- Defined in:
- lib/ncs_navigator/warehouse/models/mdes_model_collection.rb
Overview
Extensions for the modules that form a namespace for a particular MDES version's models. The methods here are available at the module level of the namespace module.
Instance Method Summary collapse
-
#mdes_order(*input) ⇒ Array<Class>
Sets or retrieves the required table order.
-
#mdes_specification_version(version_string = nil) ⇒ String
Sets or retrieves the specification version that this collection represents.
-
#mdes_version(version_string = nil) ⇒ String
Sets or retrieves the version that this collection represents.
Instance Method Details
#mdes_order(*model_classes) ⇒ Array<Class> #mdes_order ⇒ Array<Class>
Sets or retrieves the required table order.
56 57 58 59 60 61 62 |
# File 'lib/ncs_navigator/warehouse/models/mdes_model_collection.rb', line 56 def mdes_order(*input) if input.empty? @mdes_order else @mdes_order = input end end |
#mdes_specification_version(version_string) ⇒ String #mdes_specification_version ⇒ String
Sets or retrieves the specification version that this collection represents.
38 39 40 41 42 43 44 |
# File 'lib/ncs_navigator/warehouse/models/mdes_model_collection.rb', line 38 def mdes_specification_version(version_string=nil) if version_string @mdes_specification_version = version_string else @mdes_specification_version end end |
#mdes_version(version_string) ⇒ String #mdes_version ⇒ String
Sets or retrieves the version that this collection represents.
19 20 21 22 23 24 25 |
# File 'lib/ncs_navigator/warehouse/models/mdes_model_collection.rb', line 19 def mdes_version(version_string=nil) if version_string @mdes_version = version_string else @mdes_version end end |