Files
cartodb/services/datasources/lib/datasources/base_file_stream.rb
2020-06-15 10:58:47 +08:00

18 lines
368 B
Ruby

module CartoDB
module Datasources
# Performs streaming from the datasource to a file
class BaseFileStream < Base
# @param id string
# @param stream Stream
# @return Integer bytes streamed
def stream_resource(id, stream)
raise 'To be implemented in child classes'
end
private_class_method :new
end
end
end