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