Sha256: e42ea8a406d18e2c5cd74532b2e08d598ab49916f6145de958756d906391a576
Contents?: true
Size: 1.34 KB
Versions: 3
Compression:
Stored size: 1.34 KB
Contents
# <GetAssignmentsForHITResult> # <Request> # <IsValid>True</IsValid> # </Request> # <NumResults>1</NumResults> # <TotalNumResults>1</TotalNumResults> # <PageNumber>1</PageNumber> # <Assignment> # <AssignmentId>GYFTRHZ5J3DZREY48WNZE38ZR9RR1ZPMXGWE7WE0</AssignmentId> # <WorkerId>AD20WXZZP9XXK</WorkerId> # <HITId>GYFTRHZ5J3DZREY48WNZ</HITId> # <AssignmentStatus>Approved</AssignmentStatus> # <AutoApprovalTime>2009-08-12T19:21:54Z</AutoApprovalTime> # <AcceptTime>2009-07-13T19:21:40Z</AcceptTime> # <SubmitTime>2009-07-13T19:21:54Z</SubmitTime> # <ApprovalTime>2009-07-13T19:27:54Z</ApprovalTime> # <Answer> # <?xml version="1.0" encoding="UTF-8"?> # <QuestionFormAnswers xmlns="http://mechanicalturk.amazonaws.com/AWSMechanicalTurkDataSchemas/2005-10-01/QuestionFormAnswers.xsd"> # <Answer> # <QuestionIdentifier>Question100</QuestionIdentifier> # <FreeText>Move to X.</FreeText> # </Answer> # </QuestionFormAnswers> # </Answer> # </Assignment> # </GetAssignmentsForHITResult> module RTurk class GetAssignmentsForHITResponse < Response def assignments assignments = [] @xml.xpath('//Assignment').each do |assignment_xml| assignments << RTurk::Assignment.new(assignment_xml) end assignments end end end
Version data entries
3 entries across 3 versions & 1 rubygems