Sha256: b145dff8f54b6a36a4d082cd12a4104c7420892b55faa7b1877380f5a533d6a5

Contents?: true

Size: 529 Bytes

Versions: 24

Compression:

Stored size: 529 Bytes

Contents

# Operation to revoke a qualification from a worker

module RTurk
  class RevokeQualification < Operation
    attr_accessor :qualification_type_id, :subject_id, :reason
    require_params :qualification_type_id, :subject_id

    def to_params
      params = {
        'QualificationTypeId' => qualification_type_id,
        'SubjectId' => subject_id
      }
      params['Reason'] = reason unless reason.nil?
      params
    end
  end

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

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rturk-2.12.1 lib/rturk/operations/revoke_qualification.rb
rturk-2.12.0 lib/rturk/operations/revoke_qualification.rb
rturk-2.11.3 lib/rturk/operations/revoke_qualification.rb
rturk-2.11.2 lib/rturk/operations/revoke_qualification.rb
rturk-2.11.1 lib/rturk/operations/revoke_qualification.rb
rturk-2.11.0 lib/rturk/operations/revoke_qualification.rb
rturk-2.10.3 lib/rturk/operations/revoke_qualification.rb
rturk-2.10.2 lib/rturk/operations/revoke_qualification.rb
rturk-2.10.1 lib/rturk/operations/revoke_qualification.rb
rturk-2.10.0 lib/rturk/operations/revoke_qualification.rb
rturk-2.9.0 lib/rturk/operations/revoke_qualification.rb
rturk-2.8.0 lib/rturk/operations/revoke_qualification.rb
rturk-2.7.0 lib/rturk/operations/revoke_qualification.rb
rturk-2.6.0 lib/rturk/operations/revoke_qualification.rb
rturk-2.5.2 lib/rturk/operations/revoke_qualification.rb
rturk-2.5.0 lib/rturk/operations/revoke_qualification.rb
rturk-2.4.1 lib/rturk/operations/revoke_qualification.rb
rturk-2.4.0 lib/rturk/operations/revoke_qualification.rb
rturk-2.3.6 lib/rturk/operations/revoke_qualification.rb
rturk-2.3.5 lib/rturk/operations/revoke_qualification.rb