class FuelPricesEurope::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

cache_key[RW]

If you are using the cache you can set a custom prefix for cache keys. Default value: fuel-prices-europe_data

Public Class Methods

new() click to toggle source
# File lib/fuel_prices_europe/configuration.rb, line 15
def initialize
  @cache = nil
  @cache_key = 'fuel-prices-europe_data'
  @cache_expires_in = 86400
end