class HTTParty::Icebox::Store::AbstractStore
Abstract Store
¶ ↑
Inherit your store from this class IMPORTANT: Do not forget to call super
in your initialize
method!
Public Class Methods
new(options={})
click to toggle source
# File lib/shin/httparty_icebox.rb, line 155 def initialize(options={}) raise ArgumentError, "You need to set the :timeout parameter" unless options[:timeout] @timeout = options[:timeout] message = "Cache: Using #{self.class.to_s.split('::').last}" message << " in location: #{options[:location]}" if options[:location] message << " with timeout #{options[:timeout]} sec" Cache.logger.info message unless options[:logger].nil? return self end