Sha256: 983d10052878a50071de946f47079e1d364a2fb9a72c8163a0e4da71e45fecba

Contents?: true

Size: 775 Bytes

Versions: 24

Compression:

Stored size: 775 Bytes

Contents

# Operation to get qualifications for a qualification type

module RTurk
  class GetQualificationsForQualificationType < Operation
    attr_accessor :qualification_type_id, :status, :page_size, :page_number
    require_params :qualification_type_id

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

    def to_params
      params = {
        'QualificationTypeId' => qualification_type_id
      }
      params['Status'] = status unless status.nil?
      params['PageSize'] = page_size unless page_size.nil?
      params['PageNumber'] = page_number unless page_number.nil?
      params
    end
  end

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

Version data entries

24 entries across 24 versions & 1 rubygems

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