Class: ActiveWarehouse::HierarchyBridge
- Defined in:
- lib/active_warehouse/bridge/hierarchy_bridge.rb
Overview
Bridge class that models ragged hierarchies.
Class Method Summary collapse
- .effective_date ⇒ Object
- .expiration_date ⇒ Object
- .levels_from_parent ⇒ Object
- .set_effective_date(name) ⇒ Object
- .set_expiration_date(name) ⇒ Object
- .set_levels_from_parent(name) ⇒ Object
- .set_top_flag(name) ⇒ Object
- .set_top_flag_value(value) ⇒ Object
- .top_flag ⇒ Object
- .top_flag_value ⇒ Object
Methods inherited from Bridge
Class Method Details
.effective_date ⇒ Object
17 18 19 |
# File 'lib/active_warehouse/bridge/hierarchy_bridge.rb', line 17 def effective_date @effective_date ||= "effective_date" end |
.expiration_date ⇒ Object
25 26 27 |
# File 'lib/active_warehouse/bridge/hierarchy_bridge.rb', line 25 def expiration_date @expiration_date ||= "expiration_date" end |
.levels_from_parent ⇒ Object
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_flag ⇒ Object
33 34 35 |
# File 'lib/active_warehouse/bridge/hierarchy_bridge.rb', line 33 def top_flag @top_flag ||= "top_flag" end |
.top_flag_value ⇒ Object
41 42 43 |
# File 'lib/active_warehouse/bridge/hierarchy_bridge.rb', line 41 def top_flag_value @top_flag_value ||= 'Y' end |