Module: Toji::Progress::State::NihonshudoToBaume

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

Instance Method Summary collapse

Instance Method Details

#baumeObject



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

def baume
  if self.nihonshudo
    self.nihonshudo / -10.0
  end
end

#baume=(val) ⇒ Object



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

def baume=(val)
  if val
    self.nihonshudo = val.to_f * -10
  else
    self.nihonshudo = nil
  end
end