class Enigma::Export

The export endpoint has no filtering, but it returns a URL where the download will eventually be available. This client will return a ‘Download` object which can be asked to go get the file

Attributes

download[RW]
unzip[RW]

Public Instance Methods

request() click to toggle source

The API request responds with a URL to poll until it’s ready. Create a new download object with that URL and return it

@return [Download]

# File lib/enigma/endpoints/export.rb, line 15
def request
  req = Typhoeus::Request.new(url, method: :get, params: params).run
  Enigma.logger.info req.body
  res = Response.parse(req)
  Download.new(res)
end