class Egis::OutputDownloader

@!visibility private

Attributes

s3_client[R]

Public Class Methods

new(aws_s3_client) click to toggle source
# File lib/egis/output_downloader.rb, line 8
def initialize(aws_s3_client)
  @s3_client = aws_s3_client
end

Public Instance Methods

download(output_location) click to toggle source
# File lib/egis/output_downloader.rb, line 12
def download(output_location)
  query_result = s3_client.get_object(bucket: output_location.bucket, key: output_location.key)
  CSV.parse(query_result.body.read)
end