File Coverage

blib/lib/Paws/MTurk/Assignment.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::MTurk::Assignment;
2 1     1   612 use Moose;
  1         4  
  1         9  
3             has AcceptTime => (is => 'ro', isa => 'Str');
4             has Answer => (is => 'ro', isa => 'Str');
5             has ApprovalTime => (is => 'ro', isa => 'Str');
6             has AssignmentId => (is => 'ro', isa => 'Str');
7             has AssignmentStatus => (is => 'ro', isa => 'Str');
8             has AutoApprovalTime => (is => 'ro', isa => 'Str');
9             has Deadline => (is => 'ro', isa => 'Str');
10             has HITId => (is => 'ro', isa => 'Str');
11             has RejectionTime => (is => 'ro', isa => 'Str');
12             has RequesterFeedback => (is => 'ro', isa => 'Str');
13             has SubmitTime => (is => 'ro', isa => 'Str');
14             has WorkerId => (is => 'ro', isa => 'Str');
15             1;
16              
17             ### main pod documentation begin ###
18              
19             =head1 NAME
20              
21             Paws::MTurk::Assignment
22              
23             =head1 USAGE
24              
25             This class represents one of two things:
26              
27             =head3 Arguments in a call to a service
28              
29             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
30             Each attribute should be used as a named argument in the calls that expect this type of object.
31              
32             As an example, if Att1 is expected to be a Paws::MTurk::Assignment object:
33              
34             $service_obj->Method(Att1 => { AcceptTime => $value, ..., WorkerId => $value });
35              
36             =head3 Results returned from an API call
37              
38             Use accessors for each attribute. If Att1 is expected to be an Paws::MTurk::Assignment object:
39              
40             $result = $service_obj->Method(...);
41             $result->Att1->AcceptTime
42              
43             =head1 DESCRIPTION
44              
45             The Assignment data structure represents a single assignment of a HIT
46             to a Worker. The assignment tracks the Worker's efforts to complete the
47             HIT, and contains the results for later retrieval.
48              
49             =head1 ATTRIBUTES
50              
51              
52             =head2 AcceptTime => Str
53              
54             The date and time the Worker accepted the assignment.
55              
56              
57             =head2 Answer => Str
58              
59             The Worker's answers submitted for the HIT contained in a
60             QuestionFormAnswers document, if the Worker provides an answer. If the
61             Worker does not provide any answers, Answer may contain a
62             QuestionFormAnswers document, or Answer may be empty.
63              
64              
65             =head2 ApprovalTime => Str
66              
67             If the Worker has submitted results and the Requester has approved the
68             results, ApprovalTime is the date and time the Requester approved the
69             results. This value is omitted from the assignment if the Requester has
70             not yet approved the results.
71              
72              
73             =head2 AssignmentId => Str
74              
75             A unique identifier for the assignment.
76              
77              
78             =head2 AssignmentStatus => Str
79              
80             The status of the assignment.
81              
82              
83             =head2 AutoApprovalTime => Str
84              
85             If results have been submitted, AutoApprovalTime is the date and time
86             the results of the assignment results are considered Approved
87             automatically if they have not already been explicitly approved or
88             rejected by the Requester. This value is derived from the auto-approval
89             delay specified by the Requester in the HIT. This value is omitted from
90             the assignment if the Worker has not yet submitted results.
91              
92              
93             =head2 Deadline => Str
94              
95             The date and time of the deadline for the assignment. This value is
96             derived from the deadline specification for the HIT and the date and
97             time the Worker accepted the HIT.
98              
99              
100             =head2 HITId => Str
101              
102             The ID of the HIT.
103              
104              
105             =head2 RejectionTime => Str
106              
107             If the Worker has submitted results and the Requester has rejected the
108             results, RejectionTime is the date and time the Requester rejected the
109             results.
110              
111              
112             =head2 RequesterFeedback => Str
113              
114             The feedback string included with the call to the ApproveAssignment
115             operation or the RejectAssignment operation, if the Requester approved
116             or rejected the assignment and specified feedback.
117              
118              
119             =head2 SubmitTime => Str
120              
121             If the Worker has submitted results, SubmitTime is the date and time
122             the assignment was submitted. This value is omitted from the assignment
123             if the Worker has not yet submitted results.
124              
125              
126             =head2 WorkerId => Str
127              
128             The ID of the Worker who accepted the HIT.
129              
130              
131              
132             =head1 SEE ALSO
133              
134             This class forms part of L<Paws>, describing an object used in L<Paws::MTurk>
135              
136             =head1 BUGS and CONTRIBUTIONS
137              
138             The source code is located here: https://github.com/pplu/aws-sdk-perl
139              
140             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
141              
142             =cut
143