Module: Lhm::Throttler
- Included in:
- Lhm
- Defined in:
- lib/lhm/throttler.rb,
lib/lhm/throttler/time.rb
Defined Under Namespace
Classes: Factory, LegacyTime, Time
Constant Summary
collapse
- CLASSES =
{ :time_throttler => Throttler::Time }
Instance Method Summary
collapse
Instance Method Details
#setup_throttler(type, options = {}) ⇒ Object
11
12
13
|
# File 'lib/lhm/throttler.rb', line 11
def setup_throttler(type, options = {})
@throttler = Factory.create_throttler(type, options)
end
|
#throttler ⇒ Object
7
8
9
|
# File 'lib/lhm/throttler.rb', line 7
def throttler
@throttler ||= Throttler::Time.new
end
|