lib/gooddata/models/metadata/report.rb in gooddata-0.6.11 vs lib/gooddata/models/metadata/report.rb in gooddata-0.6.12

- old
+ new

@@ -118,11 +118,11 @@ # Returns binary data of the exported report in a given format. The format can be # either 'csv', 'xls', 'xlsx' or 'pdf'. # # @return [String] Returns data def export(format) - result = GoodData.post('/gdc/xtab2/executor3', 'report_req' => { 'report' => uri }) - result1 = GoodData.post('/gdc/exporter/executor', :result_req => { :format => format, :result => result }) + result = client.post('/gdc/xtab2/executor3', 'report_req' => { 'report' => uri }) + result1 = client.post('/gdc/exporter/executor', :result_req => { :format => format, :result => result }) GoodData.poll_on_code(result1['uri'], process: false) end # Returns the newest (current version) report definition uri #