Class: Cachext::Breaker
- Inherits:
-
Object
- Object
- Cachext::Breaker
- Defined in:
- lib/cachext/breaker.rb
Defined Under Namespace
Classes: WithKey
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #for(key) ⇒ Object
-
#initialize(config) ⇒ Breaker
constructor
A new instance of Breaker.
Constructor Details
#initialize(config) ⇒ Breaker
Returns a new instance of Breaker.
7 8 9 |
# File 'lib/cachext/breaker.rb', line 7 def initialize(config) @config = config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
5 6 7 |
# File 'lib/cachext/breaker.rb', line 5 def config @config end |