Class: Flukso::UTC_Exporter
- Inherits:
-
Object
- Object
- Flukso::UTC_Exporter
- Defined in:
- lib/flukso/export.rb
Instance Method Summary collapse
- #format_reading(reading) ⇒ Object
-
#initialize ⇒ UTC_Exporter
constructor
A new instance of UTC_Exporter.
- #print_header ⇒ Object
Constructor Details
#initialize ⇒ UTC_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.}\t#{reading.value}" end |
#print_header ⇒ Object
23 24 25 |
# File 'lib/flukso/export.rb', line 23 def print_header() puts "timestamp\tvalue" end |