Class: Etna::Clients::Magma::ModelsCsv::ModelsChangeset
- Inherits:
-
Struct
- Object
- Struct
- Etna::Clients::Magma::ModelsCsv::ModelsChangeset
- Defined in:
- lib/etna/clients/magma/formatting/models_csv.rb
Instance Attribute Summary collapse
-
#matrix_constants ⇒ Object
Returns the value of attribute matrix_constants.
-
#models ⇒ Object
Returns the value of attribute models.
-
#renames ⇒ Object
Returns the value of attribute renames.
Instance Method Summary collapse
- #build_renames(model_name) ⇒ Object
-
#initialize(*args) ⇒ ModelsChangeset
constructor
A new instance of ModelsChangeset.
Constructor Details
#initialize(*args) ⇒ ModelsChangeset
Returns a new instance of ModelsChangeset.
161 162 163 164 165 166 167 |
# File 'lib/etna/clients/magma/formatting/models_csv.rb', line 161 def initialize(*args) super self.models ||= Models.new self.renames ||= {} self.matrix_constants ||= {} end |
Instance Attribute Details
#matrix_constants ⇒ Object
Returns the value of attribute matrix_constants
160 161 162 |
# File 'lib/etna/clients/magma/formatting/models_csv.rb', line 160 def matrix_constants @matrix_constants end |
#models ⇒ Object
Returns the value of attribute models
160 161 162 |
# File 'lib/etna/clients/magma/formatting/models_csv.rb', line 160 def models @models end |
#renames ⇒ Object
Returns the value of attribute renames
160 161 162 |
# File 'lib/etna/clients/magma/formatting/models_csv.rb', line 160 def renames @renames end |
Instance Method Details
#build_renames(model_name) ⇒ Object
169 170 171 |
# File 'lib/etna/clients/magma/formatting/models_csv.rb', line 169 def build_renames(model_name) renames[model_name] ||= {} end |