Sha256: 3409a223e9af432b4d55dedf45087170f1be3949fd802b584f0b9cc4521728e5

Contents?: true

Size: 501 Bytes

Versions: 2

Compression:

Stored size: 501 Bytes

Contents

module RTurk
  class GetAssignmentsForHIT < Operation

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

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

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rturk-2.0.1 lib/rturk/operations/get_assignments_for_hit.rb
rturk-2.0.0 lib/rturk/operations/get_assignments_for_hit.rb