Class: ProMashRec::MashSchedule

Inherits:
Brewser::MashSchedule show all
Defined in:
lib/brewser/engines/promash_rec.rb

Instance Method Summary collapse

Methods inherited from Brewser::MashSchedule

#as_json, json_create

Methods inherited from Brewser::Model

#as_beerxml, #as_brewson, auto_migrate_down!, auto_migrate_up!, auto_upgrade!, default_repository_name

Instance Method Details

#from_promash(mash) ⇒ Object



332
333
334
335
336
337
338
339
340
# File 'lib/brewser/engines/promash_rec.rb', line 332

def from_promash(mash)
  self.name = mash.name
  self.grain_temp = "#{mash.grain_temp} dF".u
  mash.steps.each do |step, idx|
    self.mash_steps.push ProMashRec::MashStep.new.from_promash(step,idx)
  end
  
  return self
end