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.
156 157 158 159 160 161 162 |
# File 'lib/etna/clients/magma/formatting/models_csv.rb', line 156 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
155 156 157 |
# File 'lib/etna/clients/magma/formatting/models_csv.rb', line 155 def matrix_constants @matrix_constants end |
#models ⇒ Object
Returns the value of attribute models
155 156 157 |
# File 'lib/etna/clients/magma/formatting/models_csv.rb', line 155 def models @models end |
#renames ⇒ Object
Returns the value of attribute renames
155 156 157 |
# File 'lib/etna/clients/magma/formatting/models_csv.rb', line 155 def renames @renames end |
Instance Method Details
#build_renames(model_name) ⇒ Object
164 165 166 |
# File 'lib/etna/clients/magma/formatting/models_csv.rb', line 164 def build_renames(model_name) renames[model_name] ||= {} end |