lib/gooddata/models/report.rb in gooddata-0.6.0.pre10 vs lib/gooddata/models/report.rb in gooddata-0.6.0.pre11

- old
+ new

@@ -1,5 +1,7 @@ +require File.join(File.dirname(__FILE__), "metadata") + module GoodData class Report < GoodData::MdObject root_key :report @@ -63,9 +65,13 @@ while result["taskState"] && result["taskState"]["status"] == "WAIT" do sleep 10 result = GoodData.get data_result_uri end ReportDataResult.new(GoodData.get data_result_uri) + end + + def exportable? + true end 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}})