Sha256: 676c17943055898ce29ed796da2a3d90fdd156563d931c694322e0ec8189979d

Contents?: true

Size: 575 Bytes

Versions: 21

Compression:

Stored size: 575 Bytes

Contents

module RTurk
  class GetBonusPayments < Operation
    attr_accessor :hit_id, :assignment_id, :page_size,
                  :page_number

    def parse(xml)
      GetBonusPaymentsResponse.new(xml)
    end

    def to_params
      params = {
        'PageSize' => (page_size || 100),
        'PageNumber' => (page_number || 1)
      }
      
      params['HITId'] = hit_id if hit_id
      params['AssignmentId'] = assignment_id if assignment_id

      params
    end
  end

  def self.GetBonusPayments(*args, &block)
    RTurk::GetBonusPayments.create(*args, &block)
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

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