File Coverage

blib/lib/Paws/MTurk/HIT.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::HIT;
2 1     1   453 use Moose;
  1         3  
  1         7  
3             has AssignmentDurationInSeconds => (is => 'ro', isa => 'Int');
4             has AutoApprovalDelayInSeconds => (is => 'ro', isa => 'Int');
5             has CreationTime => (is => 'ro', isa => 'Str');
6             has Description => (is => 'ro', isa => 'Str');
7             has Expiration => (is => 'ro', isa => 'Str');
8             has HITGroupId => (is => 'ro', isa => 'Str');
9             has HITId => (is => 'ro', isa => 'Str');
10             has HITLayoutId => (is => 'ro', isa => 'Str');
11             has HITReviewStatus => (is => 'ro', isa => 'Str');
12             has HITStatus => (is => 'ro', isa => 'Str');
13             has HITTypeId => (is => 'ro', isa => 'Str');
14             has Keywords => (is => 'ro', isa => 'Str');
15             has MaxAssignments => (is => 'ro', isa => 'Int');
16             has NumberOfAssignmentsAvailable => (is => 'ro', isa => 'Int');
17             has NumberOfAssignmentsCompleted => (is => 'ro', isa => 'Int');
18             has NumberOfAssignmentsPending => (is => 'ro', isa => 'Int');
19             has QualificationRequirements => (is => 'ro', isa => 'ArrayRef[Paws::MTurk::QualificationRequirement]');
20             has Question => (is => 'ro', isa => 'Str');
21             has RequesterAnnotation => (is => 'ro', isa => 'Str');
22             has Reward => (is => 'ro', isa => 'Str');
23             has Title => (is => 'ro', isa => 'Str');
24             1;
25              
26             ### main pod documentation begin ###
27              
28             =head1 NAME
29              
30             Paws::MTurk::HIT
31              
32             =head1 USAGE
33              
34             This class represents one of two things:
35              
36             =head3 Arguments in a call to a service
37              
38             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
39             Each attribute should be used as a named argument in the calls that expect this type of object.
40              
41             As an example, if Att1 is expected to be a Paws::MTurk::HIT object:
42              
43             $service_obj->Method(Att1 => { AssignmentDurationInSeconds => $value, ..., Title => $value });
44              
45             =head3 Results returned from an API call
46              
47             Use accessors for each attribute. If Att1 is expected to be an Paws::MTurk::HIT object:
48              
49             $result = $service_obj->Method(...);
50             $result->Att1->AssignmentDurationInSeconds
51              
52             =head1 DESCRIPTION
53              
54             The HIT data structure represents a single HIT, including all the
55             information necessary for a Worker to accept and complete the HIT.
56              
57             =head1 ATTRIBUTES
58              
59              
60             =head2 AssignmentDurationInSeconds => Int
61              
62             The length of time, in seconds, that a Worker has to complete the HIT
63             after accepting it.
64              
65              
66             =head2 AutoApprovalDelayInSeconds => Int
67              
68             The amount of time, in seconds, after the Worker submits an assignment
69             for the HIT that the results are automatically approved by Amazon
70             Mechanical Turk. This is the amount of time the Requester has to reject
71             an assignment submitted by a Worker before the assignment is
72             auto-approved and the Worker is paid.
73              
74              
75             =head2 CreationTime => Str
76              
77             The date and time the HIT was created.
78              
79              
80             =head2 Description => Str
81              
82             A general description of the HIT.
83              
84              
85             =head2 Expiration => Str
86              
87             The date and time the HIT expires.
88              
89              
90             =head2 HITGroupId => Str
91              
92             The ID of the HIT Group of this HIT.
93              
94              
95             =head2 HITId => Str
96              
97             A unique identifier for the HIT.
98              
99              
100             =head2 HITLayoutId => Str
101              
102             The ID of the HIT Layout of this HIT.
103              
104              
105             =head2 HITReviewStatus => Str
106              
107             Indicates the review status of the HIT. Valid Values are NotReviewed |
108             MarkedForReview | ReviewedAppropriate | ReviewedInappropriate.
109              
110              
111             =head2 HITStatus => Str
112              
113             The status of the HIT and its assignments. Valid Values are Assignable
114             | Unassignable | Reviewable | Reviewing | Disposed.
115              
116              
117             =head2 HITTypeId => Str
118              
119             The ID of the HIT type of this HIT
120              
121              
122             =head2 Keywords => Str
123              
124             One or more words or phrases that describe the HIT, separated by
125             commas. Search terms similar to the keywords of a HIT are more likely
126             to have the HIT in the search results.
127              
128              
129             =head2 MaxAssignments => Int
130              
131             The number of times the HIT can be accepted and completed before the
132             HIT becomes unavailable.
133              
134              
135             =head2 NumberOfAssignmentsAvailable => Int
136              
137             The number of assignments for this HIT that are available for Workers
138             to accept.
139              
140              
141             =head2 NumberOfAssignmentsCompleted => Int
142              
143             The number of assignments for this HIT that have been approved or
144             rejected.
145              
146              
147             =head2 NumberOfAssignmentsPending => Int
148              
149             The number of assignments for this HIT that are being previewed or have
150             been accepted by Workers, but have not yet been submitted, returned, or
151             abandoned.
152              
153              
154             =head2 QualificationRequirements => ArrayRef[L<Paws::MTurk::QualificationRequirement>]
155              
156             A condition that a Worker's Qualifications must meet in order to accept
157             the HIT. A HIT can have between zero and ten Qualification
158             requirements. All requirements must be met by a Worker's Qualifications
159             for the Worker to accept the HIT.
160              
161              
162             =head2 Question => Str
163              
164             The data the Worker completing the HIT uses produce the results. This
165             is either either a QuestionForm, HTMLQuestion or an ExternalQuestion
166             data structure.
167              
168              
169             =head2 RequesterAnnotation => Str
170              
171             An arbitrary data field the Requester who created the HIT can use. This
172             field is visible only to the creator of the HIT.
173              
174              
175             =head2 Reward => Str
176              
177            
178              
179              
180             =head2 Title => Str
181              
182             The title of the HIT.
183              
184              
185              
186             =head1 SEE ALSO
187              
188             This class forms part of L<Paws>, describing an object used in L<Paws::MTurk>
189              
190             =head1 BUGS and CONTRIBUTIONS
191              
192             The source code is located here: https://github.com/pplu/aws-sdk-perl
193              
194             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
195              
196             =cut
197