Class: Suggester::Handlers::Yaml

Inherits:
Base
  • Object
show all
Defined in:
lib/suggester/handlers/yaml.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 = {}) ⇒ Yaml

Returns a new instance of Yaml.



6
7
8
9
# File 'lib/suggester/handlers/yaml.rb', line 6

def initialize(params = {})
  @file = params.delete(:file) || raise("must specify a file")
  super(params)
end