Class: GoodData::AutomatedDataDistribution
Instance Attribute Summary collapse
Attributes inherited from Rest::Object
#client, #json, #project
Instance Method Summary
collapse
#obj_id
client, default_client, #saved?
#data_property_reader
#data_property_writer
#metadata_property_reader
#metadata_property_writer
#meta
#data
#root_key
#content
Constructor Details
17
18
19
|
# File 'lib/gooddata/models/automated_data_distribution.rb', line 17
def initialize(project)
self.project = project
end
|
Instance Attribute Details
#output_stage ⇒ Object
11
12
13
14
15
|
# File 'lib/gooddata/models/automated_data_distribution.rb', line 11
def output_stage
return @output_stage if @output_stage
@output_stage = GoodData::AdsOutputStage[project: project, client: project.client]
end
|
Instance Method Details
#create_output_stage(ads, opts = {}) ⇒ Object
27
28
29
30
31
32
33
34
|
# File 'lib/gooddata/models/automated_data_distribution.rb', line 27
def create_output_stage(ads, opts = {})
data = {
ads: ads,
project: project,
client: project.client
}
@output_stage = GoodData::AdsOutputStage.create(data.merge(opts))
end
|
21
22
23
24
25
|
# File 'lib/gooddata/models/automated_data_distribution.rb', line 21
def process
GoodData::Process[:all, project: project, client: project.client].find do |p|
p.type == :dataload
end
end
|