Class: Sniffer::Config
- Inherits:
-
Anyway::Config
- Object
- Anyway::Config
- Sniffer::Config
- Defined in:
- lib/sniffer/config.rb
Overview
Sniffer configuration
Instance Method Summary collapse
Instance Method Details
#capacity ⇒ Object
31 32 33 |
# File 'lib/sniffer/config.rb', line 31 def capacity store.fetch(:capacity).to_i end |
#capacity? ⇒ Boolean
27 28 29 |
# File 'lib/sniffer/config.rb', line 27 def capacity? store.is_a?(Hash) && store.key?(:capacity) end |
#rotate? ⇒ Boolean
35 36 37 38 |
# File 'lib/sniffer/config.rb', line 35 def rotate? return false unless capacity? store.fetch(:rotate, true) end |