Module: Toji::Progress::State::BaumeToNihonshudo

Defined in:
lib/toji/progress/state/baume_to_nihonshudo.rb

Instance Method Summary collapse

Instance Method Details

#nihonshudoObject



5
6
7
8
9
# File 'lib/toji/progress/state/baume_to_nihonshudo.rb', line 5

def nihonshudo
  if self.baume
    self.baume * -10
  end
end

#nihonshudo=(val) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/toji/progress/state/baume_to_nihonshudo.rb', line 11

def nihonshudo=(val)
  if val
    self.baume = val.to_f / -10.0
  else
    self.baume = nil
  end
end