Module: ActiveJob::Plugins::Resque::Solo::ClassMethods

Defined in:
lib/active_job/plugins/resque/solo.rb

Instance Method Summary collapse

Instance Method Details

#solo_except_args(*args) ⇒ Object

Raises:

  • (ArgumentError)


21
22
23
24
# File 'lib/active_job/plugins/resque/solo.rb', line 21

def solo_except_args(*args)
  @solo_except_args = args.compact.map(&:to_s).uniq
  raise ArgumentError, "solo_except_args requires one or more field names" if @solo_except_args.empty?
end

#solo_inspectorObject



26
27
28
# File 'lib/active_job/plugins/resque/solo.rb', line 26

def solo_inspector
  @solo_inspector ||= Inspector.new(@solo_only_args, @solo_except_args)
end

#solo_only_args(*args) ⇒ Object

Raises:

  • (ArgumentError)


16
17
18
19
# File 'lib/active_job/plugins/resque/solo.rb', line 16

def solo_only_args(*args)
  @solo_only_args = args.compact.map(&:to_s).uniq
  raise ArgumentError, "solo_only_args requires one or more field names" if @solo_only_args.empty?
end