Sha256: 13d360c4f3420ce570bcedd0503d5e82fbd3b69dfb08b36bb2e0a8390e03acc3
Contents?: true
Size: 607 Bytes
Versions: 2
Compression:
Stored size: 607 Bytes
Contents
module RTurk # == Grant Bonus operation # # Grants a worker a bonus # class GrantBonus < Operation operation 'GrantBonus' attr_accessor :assignment_id, :feedback, :worker_id, :amount, :currency require_params :assignment_id, :worker_id, :amount, :feedback def to_params {'AssignmentId' => self.assignment_id, 'BonusAmount.1.Amount' => self.amount, 'BonusAmount.1.CurrencyCode' => (self.currency || 'USD'), 'RequesterFeedback' => self.feedback} end end def self.GrantBonus(*args) RTurk::GrantBonus.create(*args) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rturk-2.0.1 | lib/rturk/operations/grant_bonus.rb |
rturk-2.0.0 | lib/rturk/operations/grant_bonus.rb |