Skip to content

Instantly share code, notes, and snippets.

@manishdas
Created August 31, 2011 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manishdas/1184433 to your computer and use it in GitHub Desktop.
Save manishdas/1184433 to your computer and use it in GitHub Desktop.
line = CF::Line.create("bizzcard_army","Digitization") do |l|
# Creating a new InputFormat
CF::InputFormat.new({:line => l, :field_type => "text_data", :required => true, :valid_type => "url"})
# Creating a new Station
CF::Station.create({:line => l, :type => "work"}) do |s|
# Creating a new HumanWorker
CF::HumanWorker.new({:station => s, :number => 1, :reward => 20})
# Creating A new CustomTaskForm
CF::CustomForm.create({:station => station, :title => "Enter text from a business card image", :instruction => "Write Your Description for the worker here", :raw_html => "html_content", :raw_css => "css_content", :raw_javascript => "javascript_content"})
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment