Class: ActiveWarehouse::HierarchyBridge

Inherits:
Bridge
  • Object
show all
Defined in:
lib/active_warehouse/bridge/hierarchy_bridge.rb

Overview

Bridge class that models ragged hierarchies.

Class Method Summary collapse

Methods inherited from Bridge

table_name

Class Method Details

.effective_dateObject



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

def effective_date
  @effective_date ||= "effective_date"
end

.expiration_dateObject



25
26
27
# File 'lib/active_warehouse/bridge/hierarchy_bridge.rb', line 25

def expiration_date
  @expiration_date ||= "expiration_date"
end

.levels_from_parentObject



9
10
11
# File 'lib/active_warehouse/bridge/hierarchy_bridge.rb', line 9

def levels_from_parent
  @levels_from_parent ||= "levels_from_parent"
end

.set_effective_date(name) ⇒ Object



13
14
15
# File 'lib/active_warehouse/bridge/hierarchy_bridge.rb', line 13

def set_effective_date(name)
  @effective_date = name
end

.set_expiration_date(name) ⇒ Object



21
22
23
# File 'lib/active_warehouse/bridge/hierarchy_bridge.rb', line 21

def set_expiration_date(name)
  @expiration_date = name
end

.set_levels_from_parent(name) ⇒ Object



5
6
7
# File 'lib/active_warehouse/bridge/hierarchy_bridge.rb', line 5

def set_levels_from_parent(name)
  @levels_from_parent = name
end

.set_top_flag(name) ⇒ Object



29
30
31
# File 'lib/active_warehouse/bridge/hierarchy_bridge.rb', line 29

def set_top_flag(name)
  @top_flag = name
end

.set_top_flag_value(value) ⇒ Object



37
38
39
# File 'lib/active_warehouse/bridge/hierarchy_bridge.rb', line 37

def set_top_flag_value(value)
  @top_flag_value = value
end

.top_flagObject



33
34
35
# File 'lib/active_warehouse/bridge/hierarchy_bridge.rb', line 33

def top_flag
  @top_flag ||= "top_flag"
end

.top_flag_valueObject



41
42
43
# File 'lib/active_warehouse/bridge/hierarchy_bridge.rb', line 41

def top_flag_value
  @top_flag_value ||= 'Y'
end