module Droid::Monitor::Utils
Public Instance Methods
merge_current_time(hash)
click to toggle source
# File lib/droid/monitor/common/utils.rb, line 6 def merge_current_time(hash) hash.merge(time: Time.now.strftime('%T.%L')) end
save(data, into_file_path)
click to toggle source
# File lib/droid/monitor/common/utils.rb, line 10 def save(data, into_file_path) File.open(into_file_path, 'w') do |file| file.puts data end end