Class: Toro::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/toro/client.rb

Class Method Summary collapse

Class Method Details

.create_job(item) ⇒ Object


4
5
6
7
8
# File 'lib/toro/client.rb', line 4

def create_job(item)
  item.stringify_keys!
  job_attributes = item_to_job_attributes(item)
  Job.create!(job_attributes)
end