Class: Suggester::Handlers::Marshal

Inherits:
Base
  • Object
show all
Defined in:
lib/suggester/handlers/marshal.rb

Instance Attribute Summary

Attributes inherited from Base

#unique_field_name

Instance Method Summary collapse

Methods inherited from Base

#cache, #find, #match

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