module Wor::Batchifier::MergeParams

Public Instance Methods

classify_strategy() click to toggle source
# File lib/wor/batchifier/merge_params/symbol.rb, line 15
def classify_strategy
  strategy_class_name = to_s.split('_').collect(&:capitalize).join
  Kernel.const_get("Wor::Batchifier::#{strategy_class_name}")
rescue NameError => e
  raise Wor::Batchifier::Exceptions::StrategyNotFound
end
merge_base_case() click to toggle source
# File lib/wor/batchifier/merge_params/object.rb, line 9
def merge_base_case
  raise Wor::Batchifier::Exceptions::InvalidStrategyType
end
merge_method() click to toggle source
# File lib/wor/batchifier/merge_params/object.rb, line 5
def merge_method
  raise Wor::Batchifier::Exceptions::InvalidStrategyType
end