Class: Embulk::Input::Redash::Converter

Inherits:
Object
  • Object
show all
Defined in:
lib/embulk/input/redash/converter.rb

Overview

Type converter

Class Method Summary collapse

Class Method Details

.convert(type, value) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/embulk/input/redash/converter.rb', line 6

def self.convert(type, value)
  case type
  when :timestamp
    Time.parse(value)
  else
    value
  end
end