Class: Flukso::Local_Exporter

Inherits:
Object
  • Object
show all
Defined in:
lib/flukso/export.rb

Instance Method Summary collapse

Constructor Details

#initializeLocal_Exporter

Returns a new instance of Local_Exporter.



31
32
33
# File 'lib/flukso/export.rb', line 31

def initialize()
  $stderr.puts("Using Local Time Exporter");
end

Instance Method Details

#format_reading(reading) ⇒ Object



37
38
39
# File 'lib/flukso/export.rb', line 37

def format_reading(reading)
  puts "#{Time.at(reading.utc_timestamp)}\t#{reading.value}"
end


34
35
36
# File 'lib/flukso/export.rb', line 34

def print_header()
  puts "localtime\tvalue"
end