Sha256: 63a8d53422149b26f53044c60582afe8c612201fbda8df13d0a1d12211c43b60
Contents?: true
Size: 475 Bytes
Versions: 6
Compression:
Stored size: 475 Bytes
Contents
require File.expand_path('../example_helper', __FILE__) aws = YAML.load(File.open(File.join(File.dirname(__FILE__), 'mturk.yml'))) RTurk::setup(aws['AWSAccessKeyId'], aws['AWSAccessKey'], :sandbox => true) hit = RTurk::Hit.create(:title => 'Write a tweet for me') do |hit| hit.description = 'Simply write a witty twitter update for my account' hit.reward = 0.05 hit.assignments = 1 hit.question("http://mpercival.com.s3.amazonaws.com/newtweet.html") end p hit.url
Version data entries
6 entries across 6 versions & 1 rubygems