Sha256: 247a1daa8165a622ce89fd4f218b92147365108a461fac499328f7a224022ca7

Contents?: true

Size: 510 Bytes

Versions: 10

Compression:

Stored size: 510 Bytes

Contents

module RTurk
  class GetAssignmentsForHIT < Operation

    require_params :hit_id
    
    attr_accessor :hit_id, :page_size, :page_number, :status
    
    def parse(xml)
      GetAssignmentsForHITResponse.new(xml)
    end
    
    def to_params
      {'HITId' => hit_id,
       'PageSize' => (page_size || 100),
       'PageNumber' => page_number,
       'AssignmentStatus' => status}
    end

  end
  def self.GetAssignmentsForHIT(*args, &blk)
    RTurk::GetAssignmentsForHIT.create(*args, &blk)
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rturk-2.12.1 lib/rturk/operations/get_assignments_for_hit.rb
rturk-2.12.0 lib/rturk/operations/get_assignments_for_hit.rb
rturk-2.11.3 lib/rturk/operations/get_assignments_for_hit.rb
rturk-2.11.2 lib/rturk/operations/get_assignments_for_hit.rb
rturk-2.11.1 lib/rturk/operations/get_assignments_for_hit.rb
rturk-2.11.0 lib/rturk/operations/get_assignments_for_hit.rb
rturk-2.10.3 lib/rturk/operations/get_assignments_for_hit.rb
rturk-2.10.2 lib/rturk/operations/get_assignments_for_hit.rb
rturk-2.10.1 lib/rturk/operations/get_assignments_for_hit.rb
rturk-2.10.0 lib/rturk/operations/get_assignments_for_hit.rb