class NlGasStations::Configuration
Attributes
cache[RW]
Configure a cache to be used. Leave nil if no cache should be used.
cache_expires_in[RW]
Duration of how long data should be cached. Example: 24.hours Default value: 604800 (7 days)
cache_prefix[RW]
If you are using the cache you can set a custom prefix for cache keys. Default value: nl_gas_stations_
Public Class Methods
new()
click to toggle source
# File lib/nl_gas_stations/configuration.rb, line 16 def initialize @cache = nil @cache_prefix = 'nl_gas_stations_' @cache_expires_in = 604800 end