Sha256: 6af8099dce4be5aada49ed04411e41e441803eebf306af35c78cc553bd4a684c

Contents?: true

Size: 557 Bytes

Versions: 14

Compression:

Stored size: 557 Bytes

Contents

# Operation to assign a qualification to a worker

module RTurk
  class AssignQualification < Operation
    attr_accessor :qualification_type_id, :worker_id, :send_notification, :integer_value
    require_params :qualification_type_id, :worker_id

    def to_params
      {'QualificationTypeId' => qualification_type_id,
       'WorkerId' => worker_id,
       'SendNotification' => (!!send_notification).to_s,
       'IntegerValue' => integer_value}
    end
  end

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rturk-2.12.1 lib/rturk/operations/assign_qualification.rb
rturk-2.12.0 lib/rturk/operations/assign_qualification.rb
rturk-2.11.3 lib/rturk/operations/assign_qualification.rb
rturk-2.11.2 lib/rturk/operations/assign_qualification.rb
rturk-2.11.1 lib/rturk/operations/assign_qualification.rb
rturk-2.11.0 lib/rturk/operations/assign_qualification.rb
rturk-2.10.3 lib/rturk/operations/assign_qualification.rb
rturk-2.10.2 lib/rturk/operations/assign_qualification.rb
rturk-2.10.1 lib/rturk/operations/assign_qualification.rb
rturk-2.10.0 lib/rturk/operations/assign_qualification.rb
rturk-2.9.0 lib/rturk/operations/assign_qualification.rb
rturk-2.8.0 lib/rturk/operations/assign_qualification.rb
rturk-2.7.0 lib/rturk/operations/assign_qualification.rb
rturk-2.6.0 lib/rturk/operations/assign_qualification.rb