Module: Wye::Distributor
- Defined in:
- lib/wye/distributor.rb,
lib/wye/distributor/sticky.rb,
lib/wye/distributor/round_robin.rb
Defined Under Namespace
Classes: RoundRobin, Sticky
Class Method Summary collapse
Class Method Details
.new(type, values) ⇒ Object
6 7 8 9 10 |
# File 'lib/wye/distributor.rb', line 6 def self.new(type, values) klass = type.to_s.classify raise "unknown distributor type" unless const_defined?(klass, false) const_get(klass).new(values) end |