class NoSE::Serialize::UpdatePlanRepresenter
Represent an update plan
Public Instance Methods
cost_model()
click to toggle source
The backend cost model used to cost the updates @return [Cost::Cost]
# File lib/nose/serialize.rb, line 357 def cost_model options = represented.cost_model.instance_variable_get(:@options) options[:name] = represented.cost_model.subtype_name options end
cost_model=(options)
click to toggle source
Look up the cost model by name and attach to the results @return [void]
# File lib/nose/serialize.rb, line 365 def cost_model=(options) options = options.deep_symbolize_keys cost_model_class = Cost::Cost.subtype_class(options[:name]) represented.cost_model = cost_model_class.new(**options) end