Sha256: d92975ddbb101bf597c3a6f5140372973f5229fb5b6879f428494c89a4d94d9b

Contents?: true

Size: 626 Bytes

Versions: 26

Compression:

Stored size: 626 Bytes

Contents

# <GetReviewableHITsResult>
#   <Request>
#     <IsValid>True</IsValid>
#   </Request>
#   <NumResults>3</NumResults>
#   <TotalNumResults>3</TotalNumResults>
#   <PageNumber>1</PageNumber>
#   <HIT>
#     <HITId>GBHZVQX3EHXZ2AYDY2T0</HITId>
#   </HIT>
#   <HIT>
#     <HITId>GBHZVQX3EHXZ2AYDY2T1</HITId>
#   </HIT>
#   <HIT>
#     <HITId>GBHZVQX3EHXZ2AYDY2T2</HITId>
#   </HIT>
# </GetReviewableHITsResult>

module RTurk
  
  class GetReviewableHITsResponse < Response
    
    def hit_ids
      @xml.xpath('//HIT').inject([]) do |arr, hit_xml|
        arr << hit_xml.inner_text.strip; arr
      end
    end
    
  end
  
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
rturk-2.10.3 lib/rturk/parsers/responses/get_reviewable_hits_response.rb
rturk-2.10.2 lib/rturk/parsers/responses/get_reviewable_hits_response.rb
rturk-2.10.1 lib/rturk/parsers/responses/get_reviewable_hits_response.rb
rturk-2.10.0 lib/rturk/parsers/responses/get_reviewable_hits_response.rb
rturk-2.9.0 lib/rturk/parsers/responses/get_reviewable_hits_response.rb
rturk-2.8.0 lib/rturk/parsers/responses/get_reviewable_hits_response.rb
rturk-2.7.0 lib/rturk/parsers/responses/get_reviewable_hits_response.rb
rturk-2.6.0 lib/rturk/parsers/responses/get_reviewable_hits_response.rb
rturk-2.5.2 lib/rturk/parsers/responses/get_reviewable_hits_response.rb
rturk-2.5.0 lib/rturk/parsers/responses/get_reviewable_hits_response.rb
rturk-2.4.1 lib/rturk/parsers/responses/get_reviewable_hits_response.rb
rturk-2.4.0 lib/rturk/parsers/responses/get_reviewable_hits_response.rb
rturk-2.3.6 lib/rturk/parsers/responses/get_reviewable_hits_response.rb
rturk-2.3.5 lib/rturk/parsers/responses/get_reviewable_hits_response.rb
rturk-2.3.4 lib/rturk/parsers/responses/get_reviewable_hits_response.rb
rturk-2.3.3 lib/rturk/parsers/responses/get_reviewable_hits_response.rb
rturk-2.3.2 lib/rturk/parsers/responses/get_reviewable_hits_response.rb
rturk-2.3.1 lib/rturk/parsers/responses/get_reviewable_hits_response.rb
rturk-2.3.0 lib/rturk/parsers/responses/get_reviewable_hits_response.rb
rturk-2.2.1 lib/rturk/parsers/responses/get_reviewable_hits_response.rb