lib/gooddata/models/to_manifest.rb in gooddata-0.6.10 vs lib/gooddata/models/to_manifest.rb in gooddata-0.6.11
- old
+ new
@@ -8,11 +8,11 @@
# @param project [GoodData::Model::ProjectBlueprint] Project blueprint
# @param dataset [GoodData::Model::SchemaBlueprint] Dataset blueprint
# @param attribute [Hash] Attribute or Anchor
# @param mode [String] Mode of the load. Either FULL or INCREMENTAL
# @return [Hash] Manifest for a particular reference
- def self.attribute_to_manifest(project, dataset, a, mode)
+ def self.attribute_to_manifest(_project, dataset, a, mode)
[{
'referenceKey' => 1,
'populates' => [GoodData::Model.identifier_for(dataset, a.merge(type: :primary_label))],
'mode' => mode,
'columnName' => a[:name]
@@ -69,11 +69,11 @@
# @param project [GoodData::Model::ProjectBlueprint] Project blueprint
# @param dataset [GoodData::Model::SchemaBlueprint] Dataset blueprint
# @param reference [Hash] Reference
# @param mode [String] Mode of the load. Either FULL or INCREMENTAL
# @return [Hash] Manifest for a particular date reference
- def self.date_ref_to_manifest(project, dataset, reference, mode)
+ def self.date_ref_to_manifest(project, _dataset, reference, mode)
referenced_dataset = ProjectBlueprint.find_date_dimension(project, reference[:dataset])
[{
'populates' => [GoodData::Model.identifier_for(referenced_dataset, type: :date_ref)],
'mode' => mode,
'constraints' => { 'date' => 'dd/MM/yyyy' },
@@ -87,11 +87,11 @@
# @param project [GoodData::Model::ProjectBlueprint] Project blueprint
# @param dataset [GoodData::Model::SchemaBlueprint] Dataset blueprint
# @param fact [Hash] Fact
# @param mode [String] Mode of the load. Either FULL or INCREMENTAL
# @return [Hash] Manifest for a particular fact
- def self.fact_to_manifest(project, dataset, fact, mode)
+ def self.fact_to_manifest(_project, dataset, fact, mode)
[{
'populates' => [GoodData::Model.identifier_for(dataset, fact)],
'mode' => mode,
'columnName' => fact[:name]
}]
@@ -102,11 +102,11 @@
# @param project [GoodData::Model::ProjectBlueprint] Project blueprint
# @param dataset [GoodData::Model::SchemaBlueprint] Dataset blueprint
# @param label [Hash] Label
# @param mode [String] Mode of the load. Either FULL or INCREMENTAL
# @return [Hash] Manifest for a particular label
- def self.label_to_manifest(project, dataset, label, mode)
+ def self.label_to_manifest(_project, dataset, label, mode)
a = DatasetBlueprint.attribute_for_label(dataset, label)
[{
'populates' => [GoodData::Model.identifier_for(dataset, label, a)],
'mode' => mode,
'columnName' => label[:name]
@@ -143,10 +143,10 @@
# @param project [GoodData::Model::ProjectBlueprint] Project blueprint
# @param dataset [GoodData::Model::SchemaBlueprint] Dataset blueprint
# @param reference [Hash] Reference
# @param mode [String] Mode of the load. Either FULL or INCREMENTAL
# @return [Hash] Manifest for a particular reference
- def self.reference_to_manifest(project, dataset, reference, mode)
+ def self.reference_to_manifest(project, _dataset, reference, mode)
referenced_dataset = ProjectBlueprint.find_dataset(project, reference[:dataset])
anchor = DatasetBlueprint.anchor(referenced_dataset)
[{
'populates' => [GoodData::Model.identifier_for(referenced_dataset, anchor.merge(type: :primary_label))],
'mode' => mode,