Sha256: ea026e8b900e25061856247e7654c2e585607ddbf8a10f2084c8704d2c7f1fd7
Contents?: true
Size: 557 Bytes
Versions: 27
Compression:
Stored size: 557 Bytes
Contents
module RTurk class RTurk::ExtendHIT < RTurk::Operation attr_accessor :hit_id, :assignments, :seconds require_params :hit_id def to_params if assignments.nil? && seconds.nil? raise MissingParameters, 'Must add to either the HIT assignment count or expiration time.' end {'HITId' => self.hit_id, 'MaxAssignmentsIncrement' => self.assignments, 'ExpirationIncrementInSeconds' => self.seconds} end end def self.ExtendHIT(*args, &blk) RTurk::ExtendHIT.create(*args, &blk) end end
Version data entries
27 entries across 27 versions & 1 rubygems