Fix raw method error in measurement.rb