class Multiwoven::Integrations::Destination::AmazonS3::Client
def read_csv_headers(s3_client, bucket, key)
def read_csv_headers(s3_client, bucket, key) obj = s3_client.get_object(bucket: bucket, key: key) first_line = obj.body.read.to_s.lines.first return [] if first_line.nil? || first_line.strip.empty? CSV.parse_line(first_line.strip) end