Class: USPSStandardizer::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/usps_standardizer/configuration.rb

Class Method Summary collapse

Class Method Details

.options_and_defaultsObject



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/usps_standardizer/configuration.rb', line 4

def self.options_and_defaults
  [
    [:timeout, 5],

    # cache object (must respond to #[], #[]=, and #keys)
    [:cache, nil],

    # prefix (string) to use for all cache keys
    [:cache_prefix, "usps:"]
  ]
end