module RTurk # # # True # # 10 # 5813 # # WKAZMYZDCYCZP412TZEZ # 2009-05-17T10:05:15Z # WebReviews Qualification Master Test # # This qualification will allow you to earn more on the WebReviews HITs. # # WebReviews, webreviews, web reviews # Active # # # # WebReviews Survey # # After you have filled out this survey you will be assigned one or more qualifications... # # # # age # What is your age? # true # # # Please choose the age group you belong to. # # # # # radiobutton # # # 0018 # -18 # # # 5160 # 51-60 # # # 6000 # 60+ # # # # # # # # 1200 # # class SearchQualificationTypesResponse < Response attr_reader :num_results, :total_num_results, :page_number def initialize(response) @raw_xml = response.body @xml = Nokogiri::XML(@raw_xml) raise_errors map_content(@xml.xpath('//SearchQualificationTypesResult'), :num_results => 'NumResults', :total_num_results => 'TotalNumResults', :page_number => 'PageNumber' ) end def qualification_types @qualification_types ||= [] @xml.xpath('//QualificationType').each do |qualification_type_xml| @qualification_types << QualificationTypeParser.new(qualification_type_xml) end @qualification_types end end end