Module: Toji::Ingredient::Koji

Includes:
Rice
Defined in:
lib/toji/ingredient/koji.rb

Instance Method Summary collapse

Methods included from Rice

#cooled, #group_key, #soaked, #steamed

Instance Method Details

#default_process_groupObject



27
28
29
# File 'lib/toji/ingredient/koji.rb', line 27

def default_process_group
  ""
end

#dekojiObject

出麹歩合

出麹歩合17〜19%のものが麹菌の繁殖のほどよい麹である

出典: 酒造教本 P67



16
17
18
# File 'lib/toji/ingredient/koji.rb', line 16

def dekoji
  weight + weight * dekoji_ratio
end

#ingredient_keyObject

Scheduleへのグループ識別子



21
22
23
24
25
# File 'lib/toji/ingredient/koji.rb', line 21

def ingredient_key
  keys1 = [brand, polishing_ratio, made_in, farmer, rice_year, soaking_ratio, steaming_ratio, cooling_ratio, dekoji_ratio]
  keys2 = tanekojis&.map(&:ingredient_key)&.sort || []
  (keys1 + keys2).join(":")
end