Class: ActiveWarehouse::PrejoinFact

Inherits:
Object
  • Object
show all
Defined in:
lib/active_warehouse/prejoin_fact.rb

Overview

Class that supports prejoining a fact table with dimensions. This is useful if you need to list facts along with some or all of their detail information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fact_class) ⇒ PrejoinFact

Initialize the engine instance



17
18
19
# File 'lib/active_warehouse/prejoin_fact.rb', line 17

def initialize(fact_class)
  @fact_class = fact_class
end

Instance Attribute Details

#fact_classObject

The fact class that this engine instance is connected to



6
7
8
# File 'lib/active_warehouse/prejoin_fact.rb', line 6

def fact_class
  @fact_class
end

Instance Method Details

#populate(options = {}) ⇒ Object

Populate the prejoined fact table.



22
23
24
# File 'lib/active_warehouse/prejoin_fact.rb', line 22

def populate(options={})
  populate_prejoined_fact_table(options)
end