Class: HTTParty::Icebox::Store::AbstractStore
- Inherits:
-
Object
- Object
- HTTParty::Icebox::Store::AbstractStore
- Defined in:
- lib/p3-tvdb/httparty_icebox.rb
Overview
Abstract Store
Inherit your store from this class IMPORTANT: Do not forget to call super
in your initialize
method!
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ AbstractStore
constructor
A new instance of AbstractStore.
Constructor Details
#initialize(options = {}) ⇒ AbstractStore
Returns a new instance of AbstractStore.
155 156 157 158 159 160 161 162 163 |
# File 'lib/p3-tvdb/httparty_icebox.rb', line 155 def initialize(={}) raise ArgumentError, "You need to set the :timeout parameter" unless [:timeout] @timeout = [:timeout] = "Cache: Using #{self.class.to_s.split('::').last}" << " in location: #{[:location]}" if [:location] << " with timeout #{[:timeout]} sec" Cache.logger.info unless [:logger].nil? return self end |