Class: Flukso::UTC_Exporter

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

Instance Method Summary collapse

Constructor Details

#initializeUTC_Exporter

Returns a new instance of UTC_Exporter.



20
21
22
# File 'lib/flukso/export.rb', line 20

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

Instance Method Details

#format_reading(reading) ⇒ Object



26
27
28
# File 'lib/flukso/export.rb', line 26

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


23
24
25
# File 'lib/flukso/export.rb', line 23

def print_header()
  puts "timestamp\tvalue"
end