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.



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_constantsObject

Returns the value of attribute matrix_constants

Returns:

  • (Object)

    the current value of matrix_constants



155
156
157
# File 'lib/etna/clients/magma/formatting/models_csv.rb', line 155

def matrix_constants
  @matrix_constants
end

#modelsObject

Returns the value of attribute models

Returns:

  • (Object)

    the current value of models



155
156
157
# File 'lib/etna/clients/magma/formatting/models_csv.rb', line 155

def models
  @models
end

#renamesObject

Returns the value of attribute renames

Returns:

  • (Object)

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