Class: ServiceWorkerCacheRails::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/service-worker-cache-rails.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#assetsObject

Returns the value of attribute assets.



17
18
19
# File 'lib/service-worker-cache-rails.rb', line 17

def assets
  @assets
end

#cache_nameObject

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

#debugObject

Returns the value of attribute debug.



18
19
20
# File 'lib/service-worker-cache-rails.rb', line 18

def debug
  @debug
end