Class: Suggester::Handlers::Marshal
- Defined in:
- lib/suggester/handlers/marshal.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Marshal
constructor
A new instance of Marshal.
Methods inherited from Base
Methods included from Helpers::Refresh
#force_refresh!, #last_refreshed_at, #needs_refresh?, #refresh!, #refresh_interval, #refresh_interval=
Constructor Details
#initialize(params = {}) ⇒ Marshal
Returns a new instance of Marshal.
7 8 9 10 |
# File 'lib/suggester/handlers/marshal.rb', line 7 def initialize(params = {}) @file = params.delete(:file) || raise("must specify a file") super(params) end |