Class: Etna::Clients::Magma::ModelsCsv::ModelsChangeset

Inherits:
Struct
  • Object
show all
Defined in:
lib/etna/clients/magma/formatting/models_csv.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_constantsObject

Returns the value of attribute matrix_constants

Returns:

  • (Object)

    the current value of matrix_constants



160
161
162
# File 'lib/etna/clients/magma/formatting/models_csv.rb', line 160

def matrix_constants
  @matrix_constants
end

#modelsObject

Returns the value of attribute models

Returns:

  • (Object)

    the current value of models



160
161
162
# File 'lib/etna/clients/magma/formatting/models_csv.rb', line 160

def models
  @models
end

#renamesObject

Returns the value of attribute renames

Returns:

  • (Object)

    the current value of 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