Created
August 31, 2011 19:12
-
-
Save manishdas/1184433 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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