Module: Knuckles::Fetcher

Extended by:
Fetcher
Included in:
Fetcher
Defined in:
lib/knuckles/fetcher.rb

Instance Method Summary collapse

Instance Method Details

#call(prepared, options) ⇒ Object



11
12
13
14
15
16
17
18
19
# File 'lib/knuckles/fetcher.rb', line 11

def call(prepared, options)
  results = get_cached(prepared, options)

  prepared.each do |hash|
    result = results[hash[:key]]
    hash[:cached?] = !result.nil?
    hash[:result] = result
  end
end

#nameObject



7
8
9
# File 'lib/knuckles/fetcher.rb', line 7

def name
  "fetcher"
end