Class: Cloudq::Publish

Inherits:
Base
  • Object
show all
Defined in:
lib/cloudq/publish.rb

Instance Attribute Summary

Attributes inherited from Base

#queue

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Cloudq::Base

Instance Method Details

#job(klass, *args) ⇒ Object



7
8
9
10
# File 'lib/cloudq/publish.rb', line 7

def job(klass, *args)
  jsonized_job = jsonize(:job => { :klass => klass, :args => args})
  post(jsonized_job)
end