class Embulk::Input::GoogleSpreadsheets::LocalFile

support config by file path or content which supported by org.embulk.spi.unit.LocalFile json_keyfile:

content: |

Public Class Methods

load(v) click to toggle source

return JSON string

# File lib/embulk/input/google_spreadsheets.rb, line 18
def self.load(v)
  if v.is_a?(String)
    File.read(v)
  elsif v.is_a?(Hash)
    v['content']
  end
end