Class: ServiceWorkerCacheRails::Configuration
- Inherits:
-
Object
- Object
- ServiceWorkerCacheRails::Configuration
- Defined in:
- lib/service-worker-cache-rails.rb
Instance Attribute Summary collapse
-
#assets ⇒ Object
Returns the value of attribute assets.
-
#cache_name ⇒ Object
Returns the value of attribute cache_name.
-
#debug ⇒ Object
Returns the value of attribute debug.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
21 22 23 24 25 |
# File 'lib/service-worker-cache-rails.rb', line 21 def initialize @assets = [] @debug = false @cache_name = 'my-app-cache' end |
Instance Attribute Details
#assets ⇒ Object
Returns the value of attribute assets.
17 18 19 |
# File 'lib/service-worker-cache-rails.rb', line 17 def assets @assets end |
#cache_name ⇒ Object
Returns the value of attribute cache_name.
19 20 21 |
# File 'lib/service-worker-cache-rails.rb', line 19 def cache_name @cache_name end |
#debug ⇒ Object
Returns the value of attribute debug.
18 19 20 |
# File 'lib/service-worker-cache-rails.rb', line 18 def debug @debug end |