Demo entry 2352761

test code

   

Submitted by jbodah on Aug 08, 2015 at 18:39
Language: Ruby. Code size: 295 Bytes.

class Jobs::Search::DeepSearch
  def initialize(service_id, search_args = {})
    @service_id = service_id
    @search_args = search_args
  end

  def perform
    service = Service.find(@service_id)
    search = SearchBuilder.build(service_id, search_args)
    search.call
  end
end

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).