Sha256: f6fc6f3d96d4689397312ee82e96de68242c7024a788b1e91bdc59faa937b4ec

Contents?: true

Size: 756 Bytes

Versions: 2

Compression:

Stored size: 756 Bytes

Contents

# Operation to update a qualification score
# http://docs.aws.amazon.com/AWSMechTurk/latest/AWSMturkAPI/ApiReference_UpdateQualificationScoreOperation.html

module RTurk
  class UpdateQualificationScore < Operation
    attr_accessor :qualification_type_id, :qualification_type_score, :subject_id, :integer_value
    require_params :qualification_type_id, :subject_id, :integer_value

    def parse(xml)
      RTurk::GetQualificationScoreResponse.new(xml)
    end

    def to_params
      params = {
        'QualificationTypeId' => qualification_type_id,
        'SubjectId' => subject_id,
        'IntegerValue'=> integer_value
      }
    end
  end

  def self.UpdateQualificationScore(*args)
    RTurk::UpdateQualificationScore.create(*args)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rturk-2.12.1 lib/rturk/operations/update_qualification_score.rb
rturk-2.12.0 lib/rturk/operations/update_qualification_score.rb