Demo entry 2352763

test code2

   

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

class Jobs::Search::DeepSearch < ActiveRecord::Base
  def self.do_stuff
    puts 'doing stuff'
  end

  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.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).