Sha256: bbc64e517ca755b5417faf2b5ef11734964c4743fa295283e8b5afff98f8b34e

Contents?: true

Size: 742 Bytes

Versions: 2

Compression:

Stored size: 742 Bytes

Contents

# Operation to approve an assignment
#
# http://mechanicalturk.amazonaws.com/?Service=AWSMechanicalTurkRequester
# &AWSAccessKeyId=[the Requester's Access Key ID]
# &Version=2008-08-02
# &Operation=ApproveAssignment
# &Signature=[signature for this request]
# &Timestamp=[your system's local time]
# &AssignmentId=123RVWYBAZW00EXAMPLE456RVWYBAZW00EXAMPLE

module RTurk
  class ApproveAssignment < Operation

    operation 'ApproveAssignment'
    attr_accessor :assignment_id, :feedback
    require_params :assignment_id
    
    def to_params
      {'AssignmentId' => self.assignment_id,
        'RequesterFeedback' => self.feedback}
    end
    
  end
  def self.ApproveAssignment(*args)
    RTurk::ApproveAssignment.create(*args)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rturk-2.0.1 lib/rturk/operations/approve_assignment.rb
rturk-2.0.0 lib/rturk/operations/approve_assignment.rb