Module: Rare
- Defined in:
- lib/rare.rb,
lib/rare/version.rb,
lib/rare/throttler.rb,
lib/rare/configuration.rb
Defined Under Namespace
Classes: Configuration, Throttler
Constant Summary
collapse
- VERSION =
'0.1.0'
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
12
13
14
|
# File 'lib/rare.rb', line 12
def configuration
@configuration ||= Configuration.new
end
|
16
17
18
|
# File 'lib/rare.rb', line 16
def configure
yield(configuration)
end
|
.throttle(opts = {}, &block) ⇒ Object
8
9
10
|
# File 'lib/rare.rb', line 8
def throttle(opts = {}, &block)
throttler.throttle opts, &block
end
|