Module: ActiveWarehouse::SlowlyChangingDimension::InstanceMethods::ClassMethods
- Defined in:
- lib/active_warehouse/dimension/slowly_changing_dimension.rb
Instance Method Summary collapse
- #calculate(*args) ⇒ Object
- #count(*args) ⇒ Object
- #count_with_older(*args) ⇒ Object
- #find_with_older(*args) ⇒ Object
Instance Method Details
#calculate(*args) ⇒ Object
99 100 101 |
# File 'lib/active_warehouse/dimension/slowly_changing_dimension.rb', line 99 def calculate(*args) with_older_scope { calculate_with_older(*args) } end |
#count(*args) ⇒ Object
95 96 97 |
# File 'lib/active_warehouse/dimension/slowly_changing_dimension.rb', line 95 def count(*args) with_older_scope { count_with_older(*args) } end |
#count_with_older(*args) ⇒ Object
91 92 93 |
# File 'lib/active_warehouse/dimension/slowly_changing_dimension.rb', line 91 def count_with_older(*args) calculate_with_older(:count, *(*args)) end |
#find_with_older(*args) ⇒ Object
78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/active_warehouse/dimension/slowly_changing_dimension.rb', line 78 def find_with_older(*args) = (args) () set_readonly_option!() [:with_older] = true # yuck! case args.first when :first then find_initial() when :all then find_every() else find_from_ids(args, ) end end |