Class: Venda::DataLake

Inherits:
Object
  • Object
show all
Defined in:
lib/venda/data_lake_write.rb

Constant Summary collapse

DEFAULT_TABLE =
'requests'

Class Method Summary collapse

Class Method Details

.write(values, table: DEFAULT_TABLE) ⇒ Object



4
5
6
7
8
9
# File 'lib/venda/data_lake_write.rb', line 4

def self.write(values, table: DEFAULT_TABLE)
  Typhoeus.post(
    "https://venda.trem.workers.dev/#{table}",
    body: values.to_json
  ).success?
end