class Lhm::Throttler::Factory
Public Class Methods
create_throttler(type, options = {})
click to toggle source
# File lib/lhm/throttler.rb, line 20 def self.create_throttler(type, options = {}) case type when Lhm::Command type when Symbol CLASSES[type].new(options) when String CLASSES[type.to_sym].new(options) when Class type.new(options) else raise ArgumentError, 'type argument must be a Symbol, String or Class' end end