Class: Hacklet::SamplesResponse

Inherits:
Message
  • Object
show all
Defined in:
lib/hacklet/messages.rb

Instance Method Summary collapse

Methods inherited from Message

#calculate_checksum

Instance Method Details

#converted_samplesObject



145
146
147
148
# File 'lib/hacklet/messages.rb', line 145

def converted_samples
  t = time - 10
  samples.map { |s| t += 10; [Time.at(t), (s/13.0).round] }
end