Class: RTurk::GetAssignmentsForHIT

Inherits:
Operation
  • Object
show all
Defined in:
lib/rturk/operations/get_assignments_for_hit.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from Operation

#check_params, create, default_params, #default_params, #initialize, #request, require_params, required_params, set_operation

Constructor Details

This class inherits a constructor from RTurk::Operation

Instance Attribute Details

- (Object) hit_id

Returns the value of attribute hit_id



6
7
8
# File 'lib/rturk/operations/get_assignments_for_hit.rb', line 6

def hit_id
  @hit_id
end

- (Object) page_number

Returns the value of attribute page_number



6
7
8
# File 'lib/rturk/operations/get_assignments_for_hit.rb', line 6

def page_number
  @page_number
end

- (Object) page_size

Returns the value of attribute page_size



6
7
8
# File 'lib/rturk/operations/get_assignments_for_hit.rb', line 6

def page_size
  @page_size
end

Instance Method Details

- (Object) parse(xml)



8
9
10
# File 'lib/rturk/operations/get_assignments_for_hit.rb', line 8

def parse(xml)
  GetAssignmentsForHITResponse.new(xml)
end

- (Object) to_params



12
13
14
15
16
# File 'lib/rturk/operations/get_assignments_for_hit.rb', line 12

def to_params
  {'HITId' => hit_id,
   'PageSize' => (page_size || 100),
   'PageNumber' => page_number}
end